diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-07-28 15:20:14 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-07-31 09:35:18 +0200 |
| commit | eec77574459dcbd8d59d8dbd35125eb1e3ec1a2e (patch) | |
| tree | 056a02aa9273bdb049286d409973299785d0cf1a /src/qt/walletview.h | |
| parent | Merge pull request #6484 (diff) | |
| download | discoin-eec77574459dcbd8d59d8dbd35125eb1e3ec1a2e.tar.xz discoin-eec77574459dcbd8d59d8dbd35125eb1e3ec1a2e.zip | |
qt: Introduce PlatformStyle
Introduce a PlatformStyle to handle platform-specific customization of
the UI.
This replaces 'scicon', as well as #ifdefs to determine whether to place
icons on buttons.
The selected PlatformStyle defaults to the platform that the application
was compiled on, but can be overridden from the command line with
`-uiplatform=<x>`.
Also fixes the warning from #6328.
Diffstat (limited to 'src/qt/walletview.h')
| -rw-r--r-- | src/qt/walletview.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/walletview.h b/src/qt/walletview.h index 87c5d7bfb..f97cf1ee8 100644 --- a/src/qt/walletview.h +++ b/src/qt/walletview.h @@ -12,6 +12,7 @@ class BitcoinGUI; class ClientModel; class OverviewPage; +class PlatformStyle; class ReceiveCoinsDialog; class SendCoinsDialog; class SendCoinsRecipient; @@ -34,7 +35,7 @@ class WalletView : public QStackedWidget Q_OBJECT public: - explicit WalletView(QWidget *parent); + explicit WalletView(const PlatformStyle *platformStyle, QWidget *parent); ~WalletView(); void setBitcoinGUI(BitcoinGUI *gui); @@ -64,6 +65,7 @@ private: TransactionView *transactionView; QProgressDialog *progressDialog; + const PlatformStyle *platformStyle; public Q_SLOTS: /** Switch to overview (home) page */ |