2014-09-12 08:43:55 +00:00
|
|
|
#ifndef CALENDARDIALOG_H
|
|
|
|
#define CALENDARDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QDate>
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class CalendarDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CalendarDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit CalendarDialog(QWidget *parent = 0);
|
|
|
|
~CalendarDialog();
|
|
|
|
QDate getStartDate();
|
|
|
|
QDate getEndDate();
|
|
|
|
bool ok();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_calStart_selectionChanged();
|
|
|
|
void on_calEnd_selectionChanged();
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void changeLabeStatusIcon(bool goodOrBad);
|
|
|
|
Ui::CalendarDialog *ui;
|
|
|
|
bool isOK;
|
|
|
|
QPixmap iconPixStatus;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CALENDARDIALOG_H
|