|
|
|
@@ -41,12 +41,14 @@ SearchBanner::SearchBanner(KissCount* kiss, QFrame *parent, void* caller, OnButt
|
|
|
|
|
_calendarFrom->setFirstDayOfWeek(Qt::Monday);
|
|
|
|
|
// _calendarFrom->setNavigationBarVisible(false);
|
|
|
|
|
_calendarFrom->setVerticalHeaderFormat(QCalendarWidget::NoVerticalHeader);
|
|
|
|
|
_calendarFrom->setMaximumSize(_calendarFrom->sizeHint());
|
|
|
|
|
|
|
|
|
|
_calendarTo = new QCalendarWidget(this);
|
|
|
|
|
_calendarTo->setGridVisible(false);
|
|
|
|
|
_calendarTo->setFirstDayOfWeek(Qt::Monday);
|
|
|
|
|
// _calendarTo->setNavigationBarVisible(false);
|
|
|
|
|
_calendarTo->setVerticalHeaderFormat(QCalendarWidget::NoVerticalHeader);
|
|
|
|
|
_calendarTo->setMaximumSize(_calendarTo->sizeHint());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_description = new QLineEdit(this);
|
|
|
|
@@ -65,6 +67,7 @@ SearchBanner::SearchBanner(KissCount* kiss, QFrame *parent, void* caller, OnButt
|
|
|
|
|
item = new QListWidgetItem(_(categoryIt->name.toStdString().c_str()), _category);
|
|
|
|
|
item->setCheckState (Qt::Unchecked);
|
|
|
|
|
}
|
|
|
|
|
_category->setMaximumSize(_category->sizeHint());
|
|
|
|
|
|
|
|
|
|
_optype = new QListWidget(this);
|
|
|
|
|
item = new QListWidgetItem(_("Fix"), _optype);
|
|
|
|
@@ -75,6 +78,7 @@ SearchBanner::SearchBanner(KissCount* kiss, QFrame *parent, void* caller, OnButt
|
|
|
|
|
item->setCheckState (Qt::Unchecked);
|
|
|
|
|
item = new QListWidgetItem(_("Not checked"), _optype);
|
|
|
|
|
item->setCheckState (Qt::Unchecked);
|
|
|
|
|
_optype->setMaximumSize(_optype->sizeHint());
|
|
|
|
|
|
|
|
|
|
_account = new QListWidget(this);
|
|
|
|
|
item = new QListWidgetItem(_("Unknown"), _account);
|
|
|
|
@@ -84,6 +88,7 @@ SearchBanner::SearchBanner(KissCount* kiss, QFrame *parent, void* caller, OnButt
|
|
|
|
|
item = new QListWidgetItem(accountIt->name, _account);
|
|
|
|
|
item->setCheckState (Qt::Unchecked);
|
|
|
|
|
}
|
|
|
|
|
_account->setMaximumSize(_account->sizeHint());
|
|
|
|
|
|
|
|
|
|
QLabel* labelDescription = new QLabel(_("Description"));
|
|
|
|
|
QLabel* labelAmountFrom = new QLabel(_("Amount from"));
|
|
|
|
@@ -108,6 +113,8 @@ SearchBanner::SearchBanner(KissCount* kiss, QFrame *parent, void* caller, OnButt
|
|
|
|
|
gridBagSizer->addWidget(_optype, 1, 6);
|
|
|
|
|
gridBagSizer->addWidget(labelAccount, 0, 7);
|
|
|
|
|
gridBagSizer->addWidget(_account, 1, 7);
|
|
|
|
|
|
|
|
|
|
setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SearchBanner::~SearchBanner()
|
|
|
|
|