From: Dmintriy L. Kruglikov Date: Tue, 24 Jun 2008 08:55:37 +0000 (+0300) Subject: Repaired src/plugins wfield.h X-Git-Url: https://gitweb.ananas.su/?a=commitdiff_plain;h=14435e9513fc9446038ee07a2f2e52bf4abdb08d;p=projects%2Fananas-labs.git Repaired src/plugins wfield.h --- diff --git a/src/plugins/wfield.h b/src/plugins/wfield.h index 080d57c..0f88c04 100644 --- a/src/plugins/wfield.h +++ b/src/plugins/wfield.h @@ -143,41 +143,4 @@ class wCheckBox: public QCheckBox void valueChanged(const QString &); }; -/*! - * \en PopupCalendar for DateEdit field editor. \_en - * \ru - * \brief Всплывающий календарь для выбора даты. - * - * Используется как дополнение к виджету поля ввода/редактирования - * атрибута типа Дата бизнес объекта Ананаса. - * - * \_ru - */ -class PopupCalendar : public QDialog -{ -Q_OBJECT -public: - PopupCalendar(const QDate &day = QDate::currentDate(), - QPoint pos = QPoint(), QWidget *parent = 0, const char *name = 0); - - static QDate getDate(QWidget *parent = 0, const QDate &day = QDate::currentDate(), - QPoint pos = QPoint()); - - const QDate& day() const { return today; } - void setDay(const QDate &day); - QSize sizeHint() const; - -protected: - void mousePressEvent(QMouseEvent *event); - void mouseDoubleClickEvent(QMouseEvent *) { accept(); } - void keyPressEvent(QKeyEvent *event); - void paintEvent(QPaintEvent *event); - -private: - enum { ROWS = 7, COLS = 7 }; - QFont smallFont; - QDate today; - const QDate original; -}; - #endif