Implement Minimize to tray / Minimize on close

This commit is contained in:
Wladimir J. van der Laan
2011-06-05 14:19:57 +02:00
parent cddc003e70
commit 352083cb23
6 changed files with 77 additions and 26 deletions

View File

@@ -27,6 +27,11 @@ public:
Sent = 2,
Received = 3
} TabIndex;
protected:
void changeEvent(QEvent *e);
void closeEvent(QCloseEvent *event);
private:
TransactionTableModel *transaction_model;
ClientModel *model;
@@ -41,9 +46,9 @@ private:
QAction *sendcoins;
QAction *addressbook;
QAction *about;
QAction *receiving_addresses;
QAction *receivingAddresses;
QAction *options;
QAction *openBitCoin;
QAction *openBitcoin;
QSystemTrayIcon *trayIcon;
@@ -64,9 +69,9 @@ private slots:
void optionsClicked();
void receivingAddressesClicked();
void aboutClicked();
void newAddressClicked();
void copyClipboardClicked();
void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
void error(const QString &title, const QString &message);
};

View File

@@ -3,7 +3,12 @@
#include <QAbstractListModel>
/* Interface from QT to configuration data structure for bitcoin client */
/* Interface from QT to configuration data structure for bitcoin client.
To QT, the options are presented as a list with the different options
laid out vertically.
This can be changed to a tree once the settings become sufficiently
complex.
*/
class OptionsModel : public QAbstractListModel
{
Q_OBJECT