Add primitive support of low resolutions
This commit is contained in:
@@ -22,7 +22,8 @@
|
||||
#include "ImportPanel.hpp"
|
||||
#include "grid/ChoiceDelegate.hpp"
|
||||
|
||||
ImportPanel::ImportPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent)
|
||||
ImportPanel::ImportPanel(KissCount* kiss, wxUI *parent, bool lowResolution) :
|
||||
KissPanel(kiss, parent, lowResolution)
|
||||
{
|
||||
QVBoxLayout *vbox = new QVBoxLayout;
|
||||
QVBoxLayout *vbox2 = new QVBoxLayout;
|
||||
@@ -32,6 +33,9 @@ ImportPanel::ImportPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent
|
||||
QGroupBox* staticAccount = new QGroupBox(_("Unresolved accounts"));
|
||||
QGroupBox* staticCategory = new QGroupBox(_("Unresolved categories"));
|
||||
|
||||
_icons[KissPanel::LOW_RES_ICON] = IMPORT_LOW_ICON;
|
||||
_icons[KissPanel::HIGH_RES_ICON] = IMPORT_ICON;
|
||||
|
||||
setLayout(vbox);
|
||||
|
||||
_fileTxt = new QLineEdit;
|
||||
@@ -101,19 +105,7 @@ ImportPanel::ImportPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent
|
||||
|
||||
KissPanel* ImportPanel::CreatePanel()
|
||||
{
|
||||
return new ImportPanel(_kiss, _wxUI);
|
||||
}
|
||||
|
||||
QPushButton* ImportPanel::GetButton()
|
||||
{
|
||||
if (!_KissButton)
|
||||
{
|
||||
_KissButton = new QPushButton(QIcon(IMPORT_ICON), "", this);
|
||||
_KissButton->setFixedSize(128, 128);
|
||||
_KissButton->setIconSize(QSize(128, 128));
|
||||
}
|
||||
|
||||
return _KissButton;
|
||||
return new ImportPanel(_kiss, _wxUI, _lowResolution);
|
||||
}
|
||||
|
||||
QString ImportPanel::GetToolTip()
|
||||
|
||||
Reference in New Issue
Block a user