mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-01 05:05:57 -08:00
UI changes - Calendar widget, BitcoinAmountField styling, other minor fixes
This commit is contained in:
@@ -177,208 +177,212 @@ QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wextra -Wformat -Wform
|
|||||||
# Input
|
# Input
|
||||||
DEPENDPATH += src src/json src/qt
|
DEPENDPATH += src src/json src/qt
|
||||||
HEADERS += src/qt/bitcoingui.h \
|
HEADERS += src/qt/bitcoingui.h \
|
||||||
src/qt/transactiontablemodel.h \
|
src/qt/transactiontablemodel.h \
|
||||||
src/qt/addresstablemodel.h \
|
src/qt/addresstablemodel.h \
|
||||||
src/qt/optionsdialog.h \
|
src/qt/optionsdialog.h \
|
||||||
src/qt/sendcoinsdialog.h \
|
src/qt/sendcoinsdialog.h \
|
||||||
src/qt/coincontroldialog.h \
|
src/qt/coincontroldialog.h \
|
||||||
src/qt/coincontroltreewidget.h \
|
src/qt/coincontroltreewidget.h \
|
||||||
src/qt/addressbookpage.h \
|
src/qt/addressbookpage.h \
|
||||||
src/qt/signverifymessagedialog.h \
|
src/qt/signverifymessagedialog.h \
|
||||||
src/qt/aboutdialog.h \
|
src/qt/aboutdialog.h \
|
||||||
src/qt/editaddressdialog.h \
|
src/qt/editaddressdialog.h \
|
||||||
src/qt/bitcoinaddressvalidator.h \
|
src/qt/bitcoinaddressvalidator.h \
|
||||||
src/alert.h \
|
src/alert.h \
|
||||||
src/addrman.h \
|
src/addrman.h \
|
||||||
src/base58.h \
|
src/base58.h \
|
||||||
src/bignum.h \
|
src/bignum.h \
|
||||||
src/checkpoints.h \
|
src/checkpoints.h \
|
||||||
src/coincontrol.h \
|
src/coincontrol.h \
|
||||||
src/compat.h \
|
src/compat.h \
|
||||||
src/sync.h \
|
src/sync.h \
|
||||||
src/util.h \
|
src/util.h \
|
||||||
src/hash.h \
|
src/hash.h \
|
||||||
src/uint256.h \
|
src/uint256.h \
|
||||||
src/serialize.h \
|
src/serialize.h \
|
||||||
src/main.h \
|
src/main.h \
|
||||||
src/net.h \
|
src/net.h \
|
||||||
src/key.h \
|
src/key.h \
|
||||||
src/db.h \
|
src/db.h \
|
||||||
src/walletdb.h \
|
src/walletdb.h \
|
||||||
src/script.h \
|
src/script.h \
|
||||||
src/init.h \
|
src/init.h \
|
||||||
src/bloom.h \
|
src/bloom.h \
|
||||||
src/mruset.h \
|
src/mruset.h \
|
||||||
src/checkqueue.h \
|
src/checkqueue.h \
|
||||||
src/json/json_spirit_writer_template.h \
|
src/json/json_spirit_writer_template.h \
|
||||||
src/json/json_spirit_writer.h \
|
src/json/json_spirit_writer.h \
|
||||||
src/json/json_spirit_value.h \
|
src/json/json_spirit_value.h \
|
||||||
src/json/json_spirit_utils.h \
|
src/json/json_spirit_utils.h \
|
||||||
src/json/json_spirit_stream_reader.h \
|
src/json/json_spirit_stream_reader.h \
|
||||||
src/json/json_spirit_reader_template.h \
|
src/json/json_spirit_reader_template.h \
|
||||||
src/json/json_spirit_reader.h \
|
src/json/json_spirit_reader.h \
|
||||||
src/json/json_spirit_error_position.h \
|
src/json/json_spirit_error_position.h \
|
||||||
src/json/json_spirit.h \
|
src/json/json_spirit.h \
|
||||||
src/qt/clientmodel.h \
|
src/qt/clientmodel.h \
|
||||||
src/qt/guiutil.h \
|
src/qt/guiutil.h \
|
||||||
src/qt/transactionrecord.h \
|
src/qt/transactionrecord.h \
|
||||||
src/qt/guiconstants.h \
|
src/qt/guiconstants.h \
|
||||||
src/qt/optionsmodel.h \
|
src/qt/optionsmodel.h \
|
||||||
src/qt/monitoreddatamapper.h \
|
src/qt/monitoreddatamapper.h \
|
||||||
src/qt/transactiondesc.h \
|
src/qt/transactiondesc.h \
|
||||||
src/qt/transactiondescdialog.h \
|
src/qt/transactiondescdialog.h \
|
||||||
src/qt/bitcoinamountfield.h \
|
src/qt/bitcoinamountfield.h \
|
||||||
src/wallet.h \
|
src/wallet.h \
|
||||||
src/keystore.h \
|
src/keystore.h \
|
||||||
src/qt/transactionfilterproxy.h \
|
src/qt/transactionfilterproxy.h \
|
||||||
src/qt/transactionview.h \
|
src/qt/transactionview.h \
|
||||||
src/qt/walletmodel.h \
|
src/qt/walletmodel.h \
|
||||||
src/qt/walletview.h \
|
src/qt/walletview.h \
|
||||||
src/qt/walletstack.h \
|
src/qt/walletstack.h \
|
||||||
src/qt/walletframe.h \
|
src/qt/walletframe.h \
|
||||||
src/bitcoinrpc.h \
|
src/bitcoinrpc.h \
|
||||||
src/qt/overviewpage.h \
|
src/qt/overviewpage.h \
|
||||||
src/qt/csvmodelwriter.h \
|
src/qt/csvmodelwriter.h \
|
||||||
src/crypter.h \
|
src/crypter.h \
|
||||||
src/qt/sendcoinsentry.h \
|
src/qt/sendcoinsentry.h \
|
||||||
src/qt/qvalidatedlineedit.h \
|
src/qt/qvalidatedlineedit.h \
|
||||||
src/qt/bitcoinunits.h \
|
src/qt/bitcoinunits.h \
|
||||||
src/qt/qvaluecombobox.h \
|
src/qt/qvaluecombobox.h \
|
||||||
src/qt/askpassphrasedialog.h \
|
src/qt/askpassphrasedialog.h \
|
||||||
src/protocol.h \
|
src/protocol.h \
|
||||||
src/qt/notificator.h \
|
src/qt/notificator.h \
|
||||||
src/qt/paymentserver.h \
|
src/qt/paymentserver.h \
|
||||||
src/allocators.h \
|
src/allocators.h \
|
||||||
src/ui_interface.h \
|
src/ui_interface.h \
|
||||||
src/qt/rpcconsole.h \
|
src/qt/rpcconsole.h \
|
||||||
src/scrypt.h \
|
src/scrypt.h \
|
||||||
src/version.h \
|
src/version.h \
|
||||||
src/netbase.h \
|
src/netbase.h \
|
||||||
src/clientversion.h \
|
src/clientversion.h \
|
||||||
src/txdb.h \
|
src/txdb.h \
|
||||||
src/leveldb.h \
|
src/leveldb.h \
|
||||||
src/threadsafety.h \
|
src/threadsafety.h \
|
||||||
src/limitedmap.h \
|
src/limitedmap.h \
|
||||||
src/qt/macnotificationhandler.h \
|
src/qt/macnotificationhandler.h \
|
||||||
src/qt/splashscreen.h \
|
src/qt/splashscreen.h \
|
||||||
src/qt/CSCPublicAPI/casinocoinwebapi.h \
|
src/qt/CSCPublicAPI/casinocoinwebapi.h \
|
||||||
src/qt/CSCPublicAPI/casinocoinwebapiparser.h \
|
src/qt/CSCPublicAPI/casinocoinwebapiparser.h \
|
||||||
src/qt/CSCPublicAPI/jsonactivepromotionsparser.h \
|
src/qt/CSCPublicAPI/jsonactivepromotionsparser.h \
|
||||||
src/qt/CSCPublicAPI/jsonsingleactivepromotion.h \
|
src/qt/CSCPublicAPI/jsonactiveexchangesparser.h \
|
||||||
src/qt/qtquick_controls/cpp/guibannercontrol.h \
|
src/qt/CSCPublicAPI/jsonsingleactivepromotion.h \
|
||||||
src/qt/qtquick_controls/cpp/guibannerlistview.h \
|
src/qt/CSCPublicAPI/jsonsingleactiveexchange.h \
|
||||||
src/qt/qtquick_controls/cpp/guibannerwidget.h \
|
src/qt/qtquick_controls/cpp/guibannercontrol.h \
|
||||||
src/qt/qtquick_controls/cpp/listiteminterface.h \
|
src/qt/qtquick_controls/cpp/guibannerlistview.h \
|
||||||
src/qt/qtquick_controls/cpp/qmlbannerlistitem.h \
|
src/qt/qtquick_controls/cpp/guibannerwidget.h \
|
||||||
src/qt/qtquick_controls/cpp/qmlbannerlistmodel.h \
|
src/qt/qtquick_controls/cpp/listiteminterface.h \
|
||||||
src/qt/qtquick_controls/cpp/qmlimageprovider.h \
|
src/qt/qtquick_controls/cpp/qmlbannerlistitem.h \
|
||||||
src/qt/qtquick_controls/cpp/qmllistitem.h \
|
src/qt/qtquick_controls/cpp/qmlbannerlistmodel.h \
|
||||||
src/qt/qtquick_controls/cpp/qmllistmodel.h \
|
src/qt/qtquick_controls/cpp/qmlimageprovider.h \
|
||||||
src/qt/qtquick_controls/cpp/qmlmenutoolbarmodel.h \
|
src/qt/qtquick_controls/cpp/qmllistitem.h \
|
||||||
src/qt/qtquick_controls/cpp/qmlmenutoolbaritem.h \
|
src/qt/qtquick_controls/cpp/qmllistmodel.h \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarwidget.h \
|
src/qt/qtquick_controls/cpp/qmlmenutoolbarmodel.h \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarlistview.h \
|
src/qt/qtquick_controls/cpp/qmlmenutoolbaritem.h \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarcontrol.h \
|
src/qt/qtquick_controls/cpp/guimenutoolbarwidget.h \
|
||||||
src/qt/gui20_skin.h \
|
src/qt/qtquick_controls/cpp/guimenutoolbarlistview.h \
|
||||||
src/qt/cscfusionstyle.h \
|
src/qt/qtquick_controls/cpp/guimenutoolbarcontrol.h \
|
||||||
src/qt/pryptopage.h \
|
src/qt/gui20_skin.h \
|
||||||
src/qt/currencies.h \
|
src/qt/cscfusionstyle.h \
|
||||||
src/qt/CSCPublicAPI/jsoncoininfoparser.h \
|
src/qt/pryptopage.h \
|
||||||
src/qt/infopage.h
|
src/qt/currencies.h \
|
||||||
|
src/qt/CSCPublicAPI/jsoncoininfoparser.h \
|
||||||
|
src/qt/infopage.h
|
||||||
|
|
||||||
SOURCES += src/qt/bitcoin.cpp \
|
SOURCES += src/qt/bitcoin.cpp \
|
||||||
src/qt/bitcoingui.cpp \
|
src/qt/bitcoingui.cpp \
|
||||||
src/qt/transactiontablemodel.cpp \
|
src/qt/transactiontablemodel.cpp \
|
||||||
src/qt/addresstablemodel.cpp \
|
src/qt/addresstablemodel.cpp \
|
||||||
src/qt/optionsdialog.cpp \
|
src/qt/optionsdialog.cpp \
|
||||||
src/qt/sendcoinsdialog.cpp \
|
src/qt/sendcoinsdialog.cpp \
|
||||||
src/qt/coincontroldialog.cpp \
|
src/qt/coincontroldialog.cpp \
|
||||||
src/qt/coincontroltreewidget.cpp \
|
src/qt/coincontroltreewidget.cpp \
|
||||||
src/qt/addressbookpage.cpp \
|
src/qt/addressbookpage.cpp \
|
||||||
src/qt/signverifymessagedialog.cpp \
|
src/qt/signverifymessagedialog.cpp \
|
||||||
src/qt/aboutdialog.cpp \
|
src/qt/aboutdialog.cpp \
|
||||||
src/qt/editaddressdialog.cpp \
|
src/qt/editaddressdialog.cpp \
|
||||||
src/qt/bitcoinaddressvalidator.cpp \
|
src/qt/bitcoinaddressvalidator.cpp \
|
||||||
src/alert.cpp \
|
src/alert.cpp \
|
||||||
src/version.cpp \
|
src/version.cpp \
|
||||||
src/sync.cpp \
|
src/sync.cpp \
|
||||||
src/util.cpp \
|
src/util.cpp \
|
||||||
src/hash.cpp \
|
src/hash.cpp \
|
||||||
src/netbase.cpp \
|
src/netbase.cpp \
|
||||||
src/key.cpp \
|
src/key.cpp \
|
||||||
src/script.cpp \
|
src/script.cpp \
|
||||||
src/main.cpp \
|
src/main.cpp \
|
||||||
src/init.cpp \
|
src/init.cpp \
|
||||||
src/net.cpp \
|
src/net.cpp \
|
||||||
src/bloom.cpp \
|
src/bloom.cpp \
|
||||||
src/checkpoints.cpp \
|
src/checkpoints.cpp \
|
||||||
src/addrman.cpp \
|
src/addrman.cpp \
|
||||||
src/db.cpp \
|
src/db.cpp \
|
||||||
src/walletdb.cpp \
|
src/walletdb.cpp \
|
||||||
src/qt/clientmodel.cpp \
|
src/qt/clientmodel.cpp \
|
||||||
src/qt/guiutil.cpp \
|
src/qt/guiutil.cpp \
|
||||||
src/qt/transactionrecord.cpp \
|
src/qt/transactionrecord.cpp \
|
||||||
src/qt/optionsmodel.cpp \
|
src/qt/optionsmodel.cpp \
|
||||||
src/qt/monitoreddatamapper.cpp \
|
src/qt/monitoreddatamapper.cpp \
|
||||||
src/qt/transactiondesc.cpp \
|
src/qt/transactiondesc.cpp \
|
||||||
src/qt/transactiondescdialog.cpp \
|
src/qt/transactiondescdialog.cpp \
|
||||||
src/qt/bitcoinstrings.cpp \
|
src/qt/bitcoinstrings.cpp \
|
||||||
src/qt/bitcoinamountfield.cpp \
|
src/qt/bitcoinamountfield.cpp \
|
||||||
src/wallet.cpp \
|
src/wallet.cpp \
|
||||||
src/keystore.cpp \
|
src/keystore.cpp \
|
||||||
src/qt/transactionfilterproxy.cpp \
|
src/qt/transactionfilterproxy.cpp \
|
||||||
src/qt/transactionview.cpp \
|
src/qt/transactionview.cpp \
|
||||||
src/qt/walletmodel.cpp \
|
src/qt/walletmodel.cpp \
|
||||||
src/qt/walletview.cpp \
|
src/qt/walletview.cpp \
|
||||||
src/qt/walletstack.cpp \
|
src/qt/walletstack.cpp \
|
||||||
src/qt/walletframe.cpp \
|
src/qt/walletframe.cpp \
|
||||||
src/bitcoinrpc.cpp \
|
src/bitcoinrpc.cpp \
|
||||||
src/rpcdump.cpp \
|
src/rpcdump.cpp \
|
||||||
src/rpcnet.cpp \
|
src/rpcnet.cpp \
|
||||||
src/rpcmining.cpp \
|
src/rpcmining.cpp \
|
||||||
src/rpcwallet.cpp \
|
src/rpcwallet.cpp \
|
||||||
src/rpcblockchain.cpp \
|
src/rpcblockchain.cpp \
|
||||||
src/rpcrawtransaction.cpp \
|
src/rpcrawtransaction.cpp \
|
||||||
src/qt/overviewpage.cpp \
|
src/qt/overviewpage.cpp \
|
||||||
src/qt/csvmodelwriter.cpp \
|
src/qt/csvmodelwriter.cpp \
|
||||||
src/crypter.cpp \
|
src/crypter.cpp \
|
||||||
src/qt/sendcoinsentry.cpp \
|
src/qt/sendcoinsentry.cpp \
|
||||||
src/qt/qvalidatedlineedit.cpp \
|
src/qt/qvalidatedlineedit.cpp \
|
||||||
src/qt/bitcoinunits.cpp \
|
src/qt/bitcoinunits.cpp \
|
||||||
src/qt/qvaluecombobox.cpp \
|
src/qt/qvaluecombobox.cpp \
|
||||||
src/qt/askpassphrasedialog.cpp \
|
src/qt/askpassphrasedialog.cpp \
|
||||||
src/protocol.cpp \
|
src/protocol.cpp \
|
||||||
src/qt/notificator.cpp \
|
src/qt/notificator.cpp \
|
||||||
src/qt/paymentserver.cpp \
|
src/qt/paymentserver.cpp \
|
||||||
src/qt/rpcconsole.cpp \
|
src/qt/rpcconsole.cpp \
|
||||||
src/scrypt.cpp \
|
src/scrypt.cpp \
|
||||||
src/noui.cpp \
|
src/noui.cpp \
|
||||||
src/leveldb.cpp \
|
src/leveldb.cpp \
|
||||||
src/txdb.cpp \
|
src/txdb.cpp \
|
||||||
src/qt/splashscreen.cpp \
|
src/qt/splashscreen.cpp \
|
||||||
src/qt/CSCPublicAPI/casinocoinwebapi.cpp \
|
src/qt/CSCPublicAPI/casinocoinwebapi.cpp \
|
||||||
src/qt/CSCPublicAPI/casinocoinwebapiparser.cpp \
|
src/qt/CSCPublicAPI/casinocoinwebapiparser.cpp \
|
||||||
src/qt/CSCPublicAPI/jsonactivepromotionsparser.cpp \
|
src/qt/CSCPublicAPI/jsonactivepromotionsparser.cpp \
|
||||||
src/qt/CSCPublicAPI/jsonsingleactivepromotion.cpp \
|
src/qt/CSCPublicAPI/jsonactiveexchangesparser.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guibannercontrol.cpp \
|
src/qt/CSCPublicAPI/jsonsingleactivepromotion.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guibannerlistview.cpp \
|
src/qt/CSCPublicAPI/jsonsingleactiveexchange.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guibannerwidget.cpp \
|
src/qt/qtquick_controls/cpp/guibannercontrol.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmlbannerlistitem.cpp \
|
src/qt/qtquick_controls/cpp/guibannerlistview.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmlbannerlistmodel.cpp \
|
src/qt/qtquick_controls/cpp/guibannerwidget.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmlimageprovider.cpp \
|
src/qt/qtquick_controls/cpp/qmlbannerlistitem.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmllistitem.cpp \
|
src/qt/qtquick_controls/cpp/qmlbannerlistmodel.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmllistmodel.cpp \
|
src/qt/qtquick_controls/cpp/qmlimageprovider.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmlmenutoolbarmodel.cpp \
|
src/qt/qtquick_controls/cpp/qmllistitem.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmlmenutoolbaritem.cpp \
|
src/qt/qtquick_controls/cpp/qmllistmodel.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarwidget.cpp \
|
src/qt/qtquick_controls/cpp/qmlmenutoolbarmodel.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarlistview.cpp \
|
src/qt/qtquick_controls/cpp/qmlmenutoolbaritem.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarcontrol.cpp \
|
src/qt/qtquick_controls/cpp/guimenutoolbarwidget.cpp \
|
||||||
src/qt/gui20_skin.cpp \
|
src/qt/qtquick_controls/cpp/guimenutoolbarlistview.cpp \
|
||||||
src/qt/cscfusionstyle.cpp \
|
src/qt/qtquick_controls/cpp/guimenutoolbarcontrol.cpp \
|
||||||
src/qt/pryptopage.cpp \
|
src/qt/gui20_skin.cpp \
|
||||||
src/qt/currencies.cpp \
|
src/qt/cscfusionstyle.cpp \
|
||||||
src/qt/CSCPublicAPI/jsoncoininfoparser.cpp \
|
src/qt/pryptopage.cpp \
|
||||||
src/qt/infopage.cpp
|
src/qt/currencies.cpp \
|
||||||
|
src/qt/CSCPublicAPI/jsoncoininfoparser.cpp \
|
||||||
|
src/qt/infopage.cpp
|
||||||
|
|
||||||
|
|
||||||
RESOURCES += src/qt/bitcoin.qrc
|
RESOURCES += src/qt/bitcoin.qrc
|
||||||
|
|||||||
@@ -60,10 +60,10 @@
|
|||||||
<file>res/icons/GUI20_mainToolBar_contacts_hover.png</file>
|
<file>res/icons/GUI20_mainToolBar_contacts_hover.png</file>
|
||||||
<file>res/icons/prypto.png</file>
|
<file>res/icons/prypto.png</file>
|
||||||
<file alias="checkboxTick">res/icons/checkbox_tick.png</file>
|
<file alias="checkboxTick">res/icons/checkbox_tick.png</file>
|
||||||
<file alias="advertsArrowBottomHover">res/icons/adverts_arrow_bottom_hover.png</file>
|
<file alias="advertsArrowDownHover">res/icons/adverts_arrow_bottom_hover.png</file>
|
||||||
<file alias="advertsArrowBottom">res/icons/adverts_arrow_bottom.png</file>
|
<file alias="advertsArrowDown">res/icons/adverts_arrow_bottom.png</file>
|
||||||
<file alias="advertsArrowTop">res/icons/adverts_arrow_top.png</file>
|
<file alias="advertsArrowUp">res/icons/adverts_arrow_top.png</file>
|
||||||
<file alias="advertsArrowTopHover">res/icons/adverts_arrow_top_hover.png</file>
|
<file alias="advertsArrowUpHover">res/icons/adverts_arrow_top_hover.png</file>
|
||||||
<file alias="radiobuttonTick">res/icons/radiobutton_tick.png</file>
|
<file alias="radiobuttonTick">res/icons/radiobutton_tick.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/images">
|
<qresource prefix="/images">
|
||||||
|
|||||||
@@ -13,19 +13,22 @@
|
|||||||
BitcoinAmountField::BitcoinAmountField(QWidget *parent):
|
BitcoinAmountField::BitcoinAmountField(QWidget *parent):
|
||||||
QWidget(parent), amount(0), currentUnit(-1)
|
QWidget(parent), amount(0), currentUnit(-1)
|
||||||
{
|
{
|
||||||
amount = new QDoubleSpinBox(this);
|
|
||||||
amount->setLocale(QLocale::c());
|
unit = new QValueComboBox(this);
|
||||||
|
unit->setModel(new BitcoinUnits(this));
|
||||||
|
unit->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed );
|
||||||
|
|
||||||
|
amount = new QDoubleSpinBox(this);
|
||||||
|
amount->setLocale(QLocale::c());
|
||||||
amount->setDecimals(8);
|
amount->setDecimals(8);
|
||||||
|
amount->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed );
|
||||||
amount->installEventFilter(this);
|
amount->installEventFilter(this);
|
||||||
amount->setMaximumWidth(170);
|
|
||||||
amount->setSingleStep(0.001);
|
amount->setSingleStep(0.001);
|
||||||
|
|
||||||
QHBoxLayout *layout = new QHBoxLayout(this);
|
QHBoxLayout *layout = new QHBoxLayout(this);
|
||||||
layout->addWidget(amount);
|
layout->addWidget(amount);
|
||||||
unit = new QValueComboBox(this);
|
|
||||||
unit->setModel(new BitcoinUnits(this));
|
|
||||||
layout->addWidget(unit);
|
layout->addWidget(unit);
|
||||||
layout->addStretch(1);
|
// layout->addStretch(1);
|
||||||
layout->setContentsMargins(0,0,0,0);
|
layout->setContentsMargins(0,0,0,0);
|
||||||
|
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|||||||
@@ -92,25 +92,16 @@ int CSCFusionStyle::pixelMetric(PixelMetric metric,
|
|||||||
switch (metric)
|
switch (metric)
|
||||||
{
|
{
|
||||||
case PM_DefaultFrameWidth:
|
case PM_DefaultFrameWidth:
|
||||||
{
|
|
||||||
return 8;
|
|
||||||
}
|
|
||||||
case PM_ComboBoxFrameWidth:
|
case PM_ComboBoxFrameWidth:
|
||||||
|
case PM_SpinBoxFrameWidth:
|
||||||
|
case PM_CheckBoxLabelSpacing:
|
||||||
|
case PM_HeaderMargin:
|
||||||
{
|
{
|
||||||
return 8;
|
return 8;
|
||||||
}
|
}
|
||||||
case PM_IndicatorHeight:
|
case PM_IndicatorHeight:
|
||||||
{
|
|
||||||
return 18;
|
|
||||||
}
|
|
||||||
case PM_IndicatorWidth:
|
case PM_IndicatorWidth:
|
||||||
{
|
|
||||||
return 18;
|
|
||||||
}
|
|
||||||
case PM_ExclusiveIndicatorWidth:
|
case PM_ExclusiveIndicatorWidth:
|
||||||
{
|
|
||||||
return 18;
|
|
||||||
}
|
|
||||||
case PM_ExclusiveIndicatorHeight:
|
case PM_ExclusiveIndicatorHeight:
|
||||||
{
|
{
|
||||||
return 18;
|
return 18;
|
||||||
@@ -144,10 +135,6 @@ int CSCFusionStyle::styleHint(StyleHint hint, const QStyleOption *option,
|
|||||||
{
|
{
|
||||||
return int(true);
|
return int(true);
|
||||||
}
|
}
|
||||||
case SH_ScrollView_FrameOnlyAroundContents:
|
|
||||||
{
|
|
||||||
return int(true);
|
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
return QProxyStyle::styleHint(hint, option, widget, returnData);
|
return QProxyStyle::styleHint(hint, option, widget, returnData);
|
||||||
@@ -183,46 +170,46 @@ void CSCFusionStyle::drawPrimitive(PrimitiveElement element,
|
|||||||
painter->restore();
|
painter->restore();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PE_IndicatorArrowDown:
|
// case PE_IndicatorArrowDown:
|
||||||
case PE_IndicatorArrowUp:
|
// case PE_IndicatorArrowUp:
|
||||||
case PE_IndicatorArrowLeft:
|
// case PE_IndicatorArrowLeft:
|
||||||
case PE_IndicatorArrowRight:
|
// case PE_IndicatorArrowRight:
|
||||||
{
|
// {
|
||||||
int x, y, width, height;
|
// int x, y, width, height;
|
||||||
option->rect.getRect(&x, &y, &width, &height);
|
// option->rect.getRect(&x, &y, &width, &height);
|
||||||
painter->save();
|
// painter->save();
|
||||||
painter->setRenderHint(QPainter::Antialiasing, true);
|
// painter->setRenderHint(QPainter::Antialiasing, true);
|
||||||
QImage imgArrow;
|
// QImage imgArrow;
|
||||||
QString strPath = ":/icons/advertsArrow";
|
// QString strPath = ":/icons/advertsArrow";
|
||||||
if ( element == PE_IndicatorArrowDown )
|
// if ( element == PE_IndicatorArrowDown || PE_IndicatorSpinDown || PE_IndicatorSpinMinus )
|
||||||
{
|
// {
|
||||||
strPath.append( "Down" );
|
// strPath.append( "Down" );
|
||||||
}
|
// }
|
||||||
else if ( element == PE_IndicatorArrowLeft )
|
// else if ( element == PE_IndicatorArrowLeft )
|
||||||
{
|
// {
|
||||||
strPath.append( "Left" );
|
// strPath.append( "Left" );
|
||||||
}
|
// }
|
||||||
else if ( element == PE_IndicatorArrowUp )
|
// else if ( element == PE_IndicatorArrowUp || PE_IndicatorSpinUp || PE_IndicatorSpinPlus )
|
||||||
{
|
// {
|
||||||
strPath.append( "Top" );
|
// strPath.append( "Up" );
|
||||||
}
|
// }
|
||||||
else if ( element == PE_IndicatorArrowRight )
|
// else if ( element == PE_IndicatorArrowRight )
|
||||||
{
|
// {
|
||||||
strPath.append( "Right" );
|
// strPath.append( "Right" );
|
||||||
}
|
// }
|
||||||
|
|
||||||
if ( option->state & QStyle::State_MouseOver )
|
// if ( option->state & QStyle::State_MouseOver )
|
||||||
{
|
// {
|
||||||
strPath.append( "Hover" );
|
// strPath.append( "Hover" );
|
||||||
}
|
// }
|
||||||
qDebug() << "gonna draw: " << strPath;
|
// qDebug() << "gonna draw: " << strPath;
|
||||||
imgArrow.load( strPath );
|
// imgArrow.load( strPath );
|
||||||
int iTopLeftX = x + ( ( ( width - imgArrow.width() ) / 2 ) );
|
// int iTopLeftX = x + ( ( ( width - imgArrow.width() ) / 2 ) );
|
||||||
int iTopLeftY = y + ( ( ( height - imgArrow.height() ) / 2 ) );
|
// int iTopLeftY = y + ( ( ( height - imgArrow.height() ) / 2 ) );
|
||||||
painter->drawImage( QPoint( iTopLeftX, iTopLeftY), imgArrow );
|
// painter->drawImage( QPoint( iTopLeftX, iTopLeftY), imgArrow );
|
||||||
painter->restore();
|
// painter->restore();
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
case PE_FrameGroupBox:
|
case PE_FrameGroupBox:
|
||||||
case PE_FrameWindow:
|
case PE_FrameWindow:
|
||||||
case PE_Frame:
|
case PE_Frame:
|
||||||
@@ -288,7 +275,6 @@ void CSCFusionStyle::drawPrimitive(PrimitiveElement element,
|
|||||||
painter->restore();
|
painter->restore();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PE_PanelButtonTool:
|
|
||||||
case PE_PanelButtonCommand:
|
case PE_PanelButtonCommand:
|
||||||
{
|
{
|
||||||
GUI20Skin& skin = GUI20Skin::Instance();
|
GUI20Skin& skin = GUI20Skin::Instance();
|
||||||
@@ -304,7 +290,6 @@ void CSCFusionStyle::drawPrimitive(PrimitiveElement element,
|
|||||||
int radius = 5;
|
int radius = 5;
|
||||||
QPainterPath roundRect = roundRectPath( QRect( x + 1, y + 1, width - 1, height - 1 ), radius );
|
QPainterPath roundRect = roundRectPath( QRect( x + 1, y + 1, width - 1, height - 1 ), radius );
|
||||||
|
|
||||||
|
|
||||||
QBrush brush;
|
QBrush brush;
|
||||||
|
|
||||||
if (option->state & (State_Sunken | State_On))
|
if (option->state & (State_Sunken | State_On))
|
||||||
|
|||||||
@@ -123,7 +123,7 @@
|
|||||||
color: rgb(255, 255, 255);
|
color: rgb(255, 255, 255);
|
||||||
pressed
|
pressed
|
||||||
{
|
{
|
||||||
background-color: rgb(170, 28, 33);
|
background-color: rgb(166, 27, 31);
|
||||||
}</string>
|
}</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|||||||
@@ -29,15 +29,15 @@
|
|||||||
<property name="horizontalSpacing">
|
<property name="horizontalSpacing">
|
||||||
<number>15</number>
|
<number>15</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="1" column="1">
|
<item row="1" column="0">
|
||||||
<widget class="QFrame" name="casinoInfoBox">
|
<widget class="QFrame" name="exchangeInfoBox">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::StyledPanel</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QLabel" name="lblCasinosHeader">
|
<widget class="QLabel" name="lblExchangesHeader">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>20</x>
|
<x>20</x>
|
||||||
@@ -57,11 +57,465 @@
|
|||||||
<string notr="true">color: rgb(166, 27, 31);</string>
|
<string notr="true">color: rgb(166, 27, 31);</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Casinos</string>
|
<string>Exchanges</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QFrame" name="coinInfoBox">
|
||||||
|
<property name="autoFillBackground">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::StyledPanel</enum>
|
||||||
|
</property>
|
||||||
|
<property name="frameShadow">
|
||||||
|
<enum>QFrame::Sunken</enum>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="1" column="0">
|
||||||
|
<layout class="QFormLayout" name="formCoinDetails">
|
||||||
|
<property name="fieldGrowthPolicy">
|
||||||
|
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
||||||
|
</property>
|
||||||
|
<property name="horizontalSpacing">
|
||||||
|
<number>15</number>
|
||||||
|
</property>
|
||||||
|
<property name="verticalSpacing">
|
||||||
|
<number>10</number>
|
||||||
|
</property>
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>10</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>10</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>10</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>10</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="lblBlockHeight">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Current number of blocks</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLabel" name="txtBlockHeight">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">-</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="lblLastBlockTime">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Last block time</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLabel" name="txtLastBlockTime">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">-</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="lblCoinSupply">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Coin Supply</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QLabel" name="txtCoinSupply">
|
||||||
|
<property name="palette">
|
||||||
|
<palette>
|
||||||
|
<active>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Button">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Text">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="ButtonText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Base">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Window">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</active>
|
||||||
|
<inactive>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Button">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Text">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="ButtonText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Base">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Window">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</inactive>
|
||||||
|
<disabled>
|
||||||
|
<colorrole role="WindowText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Button">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Text">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="ButtonText">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>0</red>
|
||||||
|
<green>0</green>
|
||||||
|
<blue>0</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Base">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
<colorrole role="Window">
|
||||||
|
<brush brushstyle="SolidPattern">
|
||||||
|
<color alpha="255">
|
||||||
|
<red>255</red>
|
||||||
|
<green>255</green>
|
||||||
|
<blue>255</blue>
|
||||||
|
</color>
|
||||||
|
</brush>
|
||||||
|
</colorrole>
|
||||||
|
</disabled>
|
||||||
|
</palette>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">-</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="lblConnections">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Number of connections</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QLabel" name="txtConnections">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">-</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QLabel" name="lblDifficulty">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Difficulty</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="1">
|
||||||
|
<widget class="QLabel" name="txtDifficulty">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">-</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QLabel" name="lblHashRate">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Network Hashrate</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="1">
|
||||||
|
<widget class="QLabel" name="txtHashRate">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">-</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<widget class="QLabel" name="lblTransactionCount">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Transactions</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="1">
|
||||||
|
<widget class="QLabel" name="txtTransactionCount">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">-</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="lblCasinosHeader_2">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>MS Shell Dlg 2</family>
|
||||||
|
<pointsize>10</pointsize>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color: rgb(166, 27, 31);</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Information</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QFrame" name="newsItemsBox">
|
<widget class="QFrame" name="newsItemsBox">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
@@ -95,15 +549,15 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="1">
|
||||||
<widget class="QFrame" name="exchangeInfoBox">
|
<widget class="QFrame" name="casinoInfoBox">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::StyledPanel</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QLabel" name="lblExchangesHeader">
|
<widget class="QLabel" name="lblCasinosHeader">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>20</x>
|
<x>20</x>
|
||||||
@@ -123,7 +577,7 @@
|
|||||||
<string notr="true">color: rgb(166, 27, 31);</string>
|
<string notr="true">color: rgb(166, 27, 31);</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Exchanges</string>
|
<string>Casinos</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
|||||||
@@ -60,24 +60,14 @@
|
|||||||
<property name="textFormat">
|
<property name="textFormat">
|
||||||
<enum>Qt::PlainText</enum>
|
<enum>Qt::PlainText</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>transactionFee</cstring>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="BitcoinAmountField" name="transactionFee"/>
|
<widget class="BitcoinAmountField" name="transactionFee"/>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer_1_Main">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -179,7 +169,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="">
|
<widget class="QFrame" name="frame">
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="proxyIpLabel">
|
<widget class="QLabel" name="proxyIpLabel">
|
||||||
@@ -189,6 +179,9 @@
|
|||||||
<property name="textFormat">
|
<property name="textFormat">
|
||||||
<enum>Qt::PlainText</enum>
|
<enum>Qt::PlainText</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>proxyIp</cstring>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
@@ -199,6 +192,9 @@
|
|||||||
<property name="textFormat">
|
<property name="textFormat">
|
||||||
<enum>Qt::PlainText</enum>
|
<enum>Qt::PlainText</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>proxyPort</cstring>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
@@ -209,6 +205,9 @@
|
|||||||
<property name="textFormat">
|
<property name="textFormat">
|
||||||
<enum>Qt::PlainText</enum>
|
<enum>Qt::PlainText</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>socksVersion</cstring>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="6">
|
<item row="0" column="6">
|
||||||
@@ -248,7 +247,7 @@
|
|||||||
<widget class="QLineEdit" name="proxyPort">
|
<widget class="QLineEdit" name="proxyPort">
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>55</width>
|
<width>140</width>
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -342,6 +341,9 @@
|
|||||||
<property name="textFormat">
|
<property name="textFormat">
|
||||||
<enum>Qt::PlainText</enum>
|
<enum>Qt::PlainText</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>lang</cstring>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -363,6 +365,9 @@
|
|||||||
<property name="textFormat">
|
<property name="textFormat">
|
||||||
<enum>Qt::PlainText</enum>
|
<enum>Qt::PlainText</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>unit</cstring>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>782</width>
|
<width>805</width>
|
||||||
<height>406</height>
|
<height>550</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@@ -257,9 +257,9 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayoutAdvertWidget"/>
|
<layout class="QVBoxLayout" name="verticalLayoutAdvertWidget"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -753,6 +753,15 @@ background-color: rgb(166, 27, 31);
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QScrollArea" name="scrollArea">
|
<widget class="QScrollArea" name="scrollArea">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::NoFrame</enum>
|
||||||
|
</property>
|
||||||
|
<property name="frameShadow">
|
||||||
|
<enum>QFrame::Plain</enum>
|
||||||
|
</property>
|
||||||
<property name="widgetResizable">
|
<property name="widgetResizable">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@@ -761,12 +770,12 @@ background-color: rgb(166, 27, 31);
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>826</width>
|
<width>832</width>
|
||||||
<height>143</height>
|
<height>169</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">background-color: rgb(255, 255, 255);</string>
|
<string notr="true"/>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
@@ -783,6 +792,12 @@ background-color: rgb(166, 27, 31);
|
|||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="entries_2">
|
<widget class="QFrame" name="entries_2">
|
||||||
|
<property name="autoFillBackground">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
<layout class="QVBoxLayout" name="entries">
|
<layout class="QVBoxLayout" name="entries">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tabSignMessage">
|
<widget class="QWidget" name="tabSignMessage">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QDateTimeEdit>
|
#include <QDateTimeEdit>
|
||||||
|
#include <QCalendarWidget>
|
||||||
|
|
||||||
TransactionView::TransactionView(QWidget *parent) :
|
TransactionView::TransactionView(QWidget *parent) :
|
||||||
QWidget(parent), model(0), transactionProxyModel(0),
|
QWidget(parent), model(0), transactionProxyModel(0),
|
||||||
@@ -44,11 +45,7 @@ TransactionView::TransactionView(QWidget *parent) :
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
dateWidget = new QComboBox(this);
|
dateWidget = new QComboBox(this);
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
dateWidget->setFixedWidth(121);
|
|
||||||
#else
|
|
||||||
dateWidget->setFixedWidth(120);
|
|
||||||
#endif
|
|
||||||
dateWidget->addItem(tr("All"), All);
|
dateWidget->addItem(tr("All"), All);
|
||||||
dateWidget->addItem(tr("Today"), Today);
|
dateWidget->addItem(tr("Today"), Today);
|
||||||
dateWidget->addItem(tr("This week"), ThisWeek);
|
dateWidget->addItem(tr("This week"), ThisWeek);
|
||||||
@@ -59,11 +56,6 @@ TransactionView::TransactionView(QWidget *parent) :
|
|||||||
hlayout->addWidget(dateWidget);
|
hlayout->addWidget(dateWidget);
|
||||||
|
|
||||||
typeWidget = new QComboBox(this);
|
typeWidget = new QComboBox(this);
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
typeWidget->setFixedWidth(121);
|
|
||||||
#else
|
|
||||||
typeWidget->setFixedWidth(120);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typeWidget->addItem(tr("All"), TransactionFilterProxy::ALL_TYPES);
|
typeWidget->addItem(tr("All"), TransactionFilterProxy::ALL_TYPES);
|
||||||
typeWidget->addItem(tr("Received with"), TransactionFilterProxy::TYPE(TransactionRecord::RecvWithAddress) |
|
typeWidget->addItem(tr("Received with"), TransactionFilterProxy::TYPE(TransactionRecord::RecvWithAddress) |
|
||||||
@@ -87,11 +79,6 @@ TransactionView::TransactionView(QWidget *parent) :
|
|||||||
#if QT_VERSION >= 0x040700
|
#if QT_VERSION >= 0x040700
|
||||||
/* Do not move this to the XML file, Qt before 4.7 will choke on it */
|
/* Do not move this to the XML file, Qt before 4.7 will choke on it */
|
||||||
amountWidget->setPlaceholderText(tr("Min amount"));
|
amountWidget->setPlaceholderText(tr("Min amount"));
|
||||||
#endif
|
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
amountWidget->setFixedWidth(97);
|
|
||||||
#else
|
|
||||||
amountWidget->setFixedWidth(100);
|
|
||||||
#endif
|
#endif
|
||||||
amountWidget->setValidator(new QDoubleValidator(0, 1e20, 8, this));
|
amountWidget->setValidator(new QDoubleValidator(0, 1e20, 8, this));
|
||||||
hlayout->addWidget(amountWidget);
|
hlayout->addWidget(amountWidget);
|
||||||
@@ -381,9 +368,13 @@ void TransactionView::showDetails()
|
|||||||
|
|
||||||
QWidget *TransactionView::createDateRangeWidget()
|
QWidget *TransactionView::createDateRangeWidget()
|
||||||
{
|
{
|
||||||
|
QString strCalendarsStyleSheet = "QToolButton {height: 60px; width: 120px;}\
|
||||||
|
QAbstractItemView {selection-background-color: #F5E5E5;selection-color: #000000;}\
|
||||||
|
QListView {background-color:white;}\
|
||||||
|
";
|
||||||
dateRangeWidget = new QFrame();
|
dateRangeWidget = new QFrame();
|
||||||
dateRangeWidget->setFrameStyle(QFrame::Panel | QFrame::Raised);
|
|
||||||
dateRangeWidget->setContentsMargins(1,1,1,1);
|
dateRangeWidget->setContentsMargins(1,1,1,1);
|
||||||
|
dateRangeWidget->setStyleSheet("");
|
||||||
QHBoxLayout *layout = new QHBoxLayout(dateRangeWidget);
|
QHBoxLayout *layout = new QHBoxLayout(dateRangeWidget);
|
||||||
layout->setContentsMargins(0,0,0,0);
|
layout->setContentsMargins(0,0,0,0);
|
||||||
layout->addSpacing(23);
|
layout->addSpacing(23);
|
||||||
@@ -392,7 +383,10 @@ QWidget *TransactionView::createDateRangeWidget()
|
|||||||
dateFrom = new QDateTimeEdit(this);
|
dateFrom = new QDateTimeEdit(this);
|
||||||
dateFrom->setDisplayFormat("dd/MM/yy");
|
dateFrom->setDisplayFormat("dd/MM/yy");
|
||||||
dateFrom->setCalendarPopup(true);
|
dateFrom->setCalendarPopup(true);
|
||||||
dateFrom->setMinimumWidth(100);
|
|
||||||
|
dateFrom->calendarWidget()->setStyleSheet( strCalendarsStyleSheet );
|
||||||
|
|
||||||
|
dateFrom->setMinimumWidth(100);
|
||||||
dateFrom->setDate(QDate::currentDate().addDays(-7));
|
dateFrom->setDate(QDate::currentDate().addDays(-7));
|
||||||
layout->addWidget(dateFrom);
|
layout->addWidget(dateFrom);
|
||||||
layout->addWidget(new QLabel(tr("to")));
|
layout->addWidget(new QLabel(tr("to")));
|
||||||
@@ -400,6 +394,9 @@ QWidget *TransactionView::createDateRangeWidget()
|
|||||||
dateTo = new QDateTimeEdit(this);
|
dateTo = new QDateTimeEdit(this);
|
||||||
dateTo->setDisplayFormat("dd/MM/yy");
|
dateTo->setDisplayFormat("dd/MM/yy");
|
||||||
dateTo->setCalendarPopup(true);
|
dateTo->setCalendarPopup(true);
|
||||||
|
|
||||||
|
dateTo->calendarWidget()->setStyleSheet( strCalendarsStyleSheet );
|
||||||
|
|
||||||
dateTo->setMinimumWidth(100);
|
dateTo->setMinimumWidth(100);
|
||||||
dateTo->setDate(QDate::currentDate());
|
dateTo->setDate(QDate::currentDate());
|
||||||
layout->addWidget(dateTo);
|
layout->addWidget(dateTo);
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ WalletView::WalletView(QWidget *parent, BitcoinGUI *_gui):
|
|||||||
vbox->addWidget(transactionView);
|
vbox->addWidget(transactionView);
|
||||||
QPushButton *exportButton = new QPushButton(tr("&Export"), this);
|
QPushButton *exportButton = new QPushButton(tr("&Export"), this);
|
||||||
exportButton->setToolTip(tr("Export the data in the current tab to a file"));
|
exportButton->setToolTip(tr("Export the data in the current tab to a file"));
|
||||||
|
exportButton->setStyleSheet( "background-color: rgb(170, 28, 33);\ncolor: rgb(255, 255, 255);\npressed\n{\nbackground-color: rgb(166, 27, 31);\n}" );
|
||||||
#ifndef Q_OS_MAC // Icons on push buttons are very uncommon on Mac
|
#ifndef Q_OS_MAC // Icons on push buttons are very uncommon on Mac
|
||||||
exportButton->setIcon(QIcon(":/icons/export"));
|
exportButton->setIcon(QIcon(":/icons/export"));
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user