mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-01 11:11:15 +02:00
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.
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user