20 #include "FdDialogBkgProperties.hpp"
22 #include "FdSubWindow.hpp"
23 #include "../data/FdModelJournal.hpp"
29 QDialog(parent), mSubwindow(NULL), mMainWindow(main)
35 int currentYear = QDate::currentDate().year();
36 inInitialDate->setDate(QDate(currentYear,1,1));
37 inFinalDate->setDate(QDate(currentYear,12,31));
52 buttonBrowse->setIcon(QIcon::fromTheme(
"document-open"));
65 QDate initialDate = inInitialDate->date();
66 QDate finalDate = inFinalDate->date();
68 if(initialDate > finalDate)
92 inInitialDate->setMaximumDate(journal->
getMinDate());
93 inFinalDate->setMinimumDate(journal->
getMaxDate());
125 if(inLabel->text().operator ==(
""))
127 inLabel->setStyleSheet(
"background: red");
132 inInitialDate->setStyleSheet(
"background: red");
133 inFinalDate->setStyleSheet(
"background: red");
149 QDialogButtonBox::ButtonRole role(buttonBox->buttonRole(button));
150 if(role == QDialogButtonBox::ResetRole)
156 QString file = QFileDialog::getOpenFileName(
this, QObject::tr(
"Select a file",
"Select a file to be the bookkeeping logo."), QDir::homePath(),
157 QObject::tr(
"Images (*.png *.jpg)",
"File format, so leave (*.png *.jpg) unchanged."));
159 inLogo->setText(file);