Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Definition at line 1626 of file qcalendarwidget.cpp.
QCalendarWidgetPrivate::QCalendarWidgetPrivate | ( | ) |
Definition at line 1700 of file qcalendarwidget.cpp.
References m_dateEditEnabled, m_delegate, m_model, m_navigator, m_selection, m_view, navBarVisible, oldFocusPolicy, and Qt::StrongFocus.
void QCalendarWidgetPrivate::_q_editingFinished | ( | ) |
Definition at line 2006 of file qcalendarwidget.cpp.
References emit, QtPrivate::QCalendarModel::m_date, and m_model.
Referenced by setNavigatorEnabled().
Definition at line 1879 of file qcalendarwidget.cpp.
References QDate::addMonths(), QAction::data(), getCurrentDate(), QtPrivate::QCalendarModel::m_calendar, m_model, QDate::month(), monthButton, QAbstractButton::setText(), QAction::text, QVariant::toInt(), and updateCurrentPage().
void QCalendarWidgetPrivate::_q_nextMonthClicked | ( | ) |
Definition at line 1899 of file qcalendarwidget.cpp.
References QDate::addMonths(), getCurrentDate(), QtPrivate::QCalendarModel::m_calendar, m_model, and updateCurrentPage().
void QCalendarWidgetPrivate::_q_prevMonthClicked | ( | ) |
Definition at line 1893 of file qcalendarwidget.cpp.
References QDate::addMonths(), getCurrentDate(), QtPrivate::QCalendarModel::m_calendar, m_model, and updateCurrentPage().
Definition at line 1986 of file qcalendarwidget.cpp.
References _q_slotChangeDate(), and date.
Referenced by _q_slotChangeDate(), and setNavigatorEnabled().
Definition at line 1991 of file qcalendarwidget.cpp.
References date, emit, QtPrivate::QCalendarModel::m_calendar, QtPrivate::QCalendarModel::m_date, m_model, m_navigator, QtPrivate::QCalendarModel::setDate(), QtPrivate::QCalendarTextNavigator::setDate(), showMonth(), and update().
Definition at line 1981 of file qcalendarwidget.cpp.
References date, and updateCurrentPage().
void QCalendarWidgetPrivate::_q_yearClicked | ( | ) |
Definition at line 1920 of file qcalendarwidget.cpp.
References QSpacerItem::changeSize(), QWidget::height, QWidget::hide(), Qt::MouseFocusReason, Qt::NoFocus, oldFocusPolicy, qApp, QWidget::raise(), QAbstractSpinBox::selectAll(), QWidget::setFocus(), QWidget::setGeometry(), QWidget::show(), QAbstractSpinBox::sizeHint(), spaceHolder, QSize::width(), QWidget::width, QWidget::x, QWidget::y, yearButton, and yearEdit.
void QCalendarWidgetPrivate::_q_yearEditingFinished | ( | ) |
Definition at line 1905 of file qcalendarwidget.cpp.
References QDate::addYears(), QSpacerItem::changeSize(), getCurrentDate(), QWidget::hide(), QtPrivate::QCalendarModel::m_calendar, m_model, oldFocusPolicy, qApp, QAbstractButton::setText(), QWidget::show(), spaceHolder, QAbstractSpinBox::text, updateCurrentPage(), QDate::year(), yearButton, and yearEdit.
Definition at line 1738 of file qcalendarwidget.cpp.
References QMenu::addAction(), QSizePolicy::Fixed, font, QWidget::hide(), QPalette::Highlight, i, QToolButton::InstantPopup, QtPrivate::QCalendarModel::m_calendar, QtPrivate::QCalendarModel::m_date, QtPrivate::QCalendarModel::m_maximumDate, QtPrivate::QCalendarModel::m_minimumDate, m_model, QCalendar::maximumMonthsInYear(), QSizePolicy::Minimum, QDate::month(), monthButton, monthMenu, QtPrivate::QCalendarModel::monthName(), monthToAction, navBarBackground, nextMonth, Qt::NoFocus, prevMonth, QWidget::setAutoFillBackground(), QToolButton::setAutoRaise(), QAbstractButton::setAutoRepeat(), QWidget::setBackgroundRole(), QFont::setBold(), QLayout::setContentsMargins(), QAction::setData(), QWidget::setFocusPolicy(), QWidget::setFont(), QAbstractSpinBox::setFrame(), QWidget::setLayout(), QSpinBox::setMaximum(), QSpinBox::setMinimum(), QObject::setObjectName(), QWidget::setSizePolicy(), showMonth(), spaceHolder, Qt::StrongFocus, updateButtonIcons(), updateMonthMenu(), widget, QDate::year(), yearButton, and yearEdit.
|
inline |
Definition at line 1887 of file qcalendarwidget.cpp.
References QAbstractItemView::currentIndex(), QtPrivate::QCalendarModel::dateForCell(), m_model, and m_view.
Referenced by _q_monthChanged(), _q_nextMonthClicked(), _q_prevMonthClicked(), and _q_yearEditingFinished().
Definition at line 1975 of file qcalendarwidget.cpp.
References date, painter, and rect.
Referenced by QtPrivate::QCalendarDelegate::paint().
void QCalendarWidgetPrivate::setNavigatorEnabled | ( | bool | enable | ) |
Definition at line 1713 of file qcalendarwidget.cpp.
References _q_editingFinished(), _q_slotChangeDate(), m_navigator, m_view, QtPrivate::QCalendarTextNavigator::setWidget(), SIGNAL, SLOT, and QtPrivate::QCalendarTextNavigator::widget().
void QCalendarWidgetPrivate::showMonth | ( | int | year, |
int | month ) |
Definition at line 1937 of file qcalendarwidget.cpp.
References cachedSizeHint, emit, QtPrivate::QCalendarView::internalUpdate(), m_model, QtPrivate::QCalendarModel::m_shownMonth, QtPrivate::QCalendarModel::m_shownYear, m_view, QtPrivate::QCalendarModel::showMonth(), update(), updateMonthMenu(), and updateNavigationBar().
Referenced by _q_slotChangeDate(), createNavigationBar(), and updateCurrentPage().
void QCalendarWidgetPrivate::update | ( | ) |
Definition at line 1962 of file qcalendarwidget.cpp.
References QtPrivate::QCalendarModel::cellForDate(), QItemSelectionModel::clear(), QAbstractTableModel::index(), QtPrivate::QCalendarModel::m_date, m_model, m_selection, QItemSelectionModel::SelectCurrent, and QItemSelectionModel::setCurrentIndex().
Referenced by _q_slotChangeDate(), and showMonth().
void QCalendarWidgetPrivate::updateButtonIcons | ( | ) |
Definition at line 1813 of file qcalendarwidget.cpp.
References nextMonth, prevMonth, QAbstractButton::setIcon(), QStyle::SP_ArrowLeft, and QStyle::SP_ArrowRight.
Referenced by createNavigationBar().
Definition at line 1857 of file qcalendarwidget.cpp.
References QtPrivate::QCalendarModel::calendar(), QtPrivate::QCalendarModel::cellForDate(), date, QAbstractTableModel::index(), m_model, m_view, QItemSelectionModel::NoUpdate, QAbstractItemView::selectionModel(), QItemSelectionModel::setCurrentIndex(), and showMonth().
Referenced by _q_monthChanged(), _q_nextMonthClicked(), _q_prevMonthClicked(), _q_slotShowDate(), and _q_yearEditingFinished().
void QCalendarWidgetPrivate::updateMonthMenu | ( | ) |
Definition at line 1820 of file qcalendarwidget.cpp.
References QtPrivate::QCalendarModel::calendar(), i, QtPrivate::QCalendarModel::m_calendar, QtPrivate::QCalendarModel::m_maximumDate, QtPrivate::QCalendarModel::m_minimumDate, m_model, QtPrivate::QCalendarModel::m_shownMonth, QtPrivate::QCalendarModel::m_shownYear, QDate::month(), QCalendar::monthsInYear(), monthToAction, nextMonth, prevMonth, QWidget::setEnabled(), and QDate::year().
Referenced by createNavigationBar(), and showMonth().
void QCalendarWidgetPrivate::updateMonthMenuNames | ( | ) |
Definition at line 1847 of file qcalendarwidget.cpp.
References i, m_model, QtPrivate::QCalendarModel::monthName(), and monthToAction.
void QCalendarWidgetPrivate::updateNavigationBar | ( | ) |
Definition at line 1951 of file qcalendarwidget.cpp.
References m_model, QtPrivate::QCalendarModel::m_shownMonth, QtPrivate::QCalendarModel::m_shownYear, monthButton, QtPrivate::QCalendarModel::monthName(), QAbstractButton::setText(), QSpinBox::setValue(), QAbstractSpinBox::text, yearButton, and yearEdit.
Referenced by showMonth().
|
mutable |
Definition at line 1673 of file qcalendarwidget.cpp.
Referenced by showMonth().
bool QCalendarWidgetPrivate::m_dateEditEnabled |
Definition at line 1660 of file qcalendarwidget.cpp.
Referenced by QCalendarWidgetPrivate().
QCalendarDelegate* QCalendarWidgetPrivate::m_delegate |
Definition at line 1657 of file qcalendarwidget.cpp.
Referenced by QCalendarWidgetPrivate().
QCalendarModel* QCalendarWidgetPrivate::m_model |
Definition at line 1655 of file qcalendarwidget.cpp.
Referenced by QCalendarWidgetPrivate(), _q_editingFinished(), _q_monthChanged(), _q_nextMonthClicked(), _q_prevMonthClicked(), _q_slotChangeDate(), _q_yearEditingFinished(), createNavigationBar(), getCurrentDate(), QtPrivate::QCalendarDelegate::paint(), QtPrivate::QCalendarDelegate::paintCell(), showMonth(), update(), updateCurrentPage(), updateMonthMenu(), updateMonthMenuNames(), and updateNavigationBar().
QCalendarTextNavigator* QCalendarWidgetPrivate::m_navigator |
Definition at line 1659 of file qcalendarwidget.cpp.
Referenced by QCalendarWidgetPrivate(), _q_slotChangeDate(), and setNavigatorEnabled().
QItemSelectionModel* QCalendarWidgetPrivate::m_selection |
Definition at line 1658 of file qcalendarwidget.cpp.
Referenced by QCalendarWidgetPrivate(), and update().
QCalendarView* QCalendarWidgetPrivate::m_view |
Definition at line 1656 of file qcalendarwidget.cpp.
Referenced by QCalendarWidgetPrivate(), getCurrentDate(), setNavigatorEnabled(), showMonth(), and updateCurrentPage().
QCalToolButton* QCalendarWidgetPrivate::monthButton |
Definition at line 1664 of file qcalendarwidget.cpp.
Referenced by _q_monthChanged(), createNavigationBar(), and updateNavigationBar().
QMenu* QCalendarWidgetPrivate::monthMenu |
Definition at line 1665 of file qcalendarwidget.cpp.
Referenced by createNavigationBar().
Definition at line 1666 of file qcalendarwidget.cpp.
Referenced by createNavigationBar(), updateMonthMenu(), and updateMonthMenuNames().
QWidget* QCalendarWidgetPrivate::navBarBackground |
Definition at line 1669 of file qcalendarwidget.cpp.
Referenced by createNavigationBar().
bool QCalendarWidgetPrivate::navBarVisible |
Definition at line 1672 of file qcalendarwidget.cpp.
Referenced by QCalendarWidgetPrivate().
QToolButton* QCalendarWidgetPrivate::nextMonth |
Definition at line 1662 of file qcalendarwidget.cpp.
Referenced by createNavigationBar(), updateButtonIcons(), and updateMonthMenu().
Qt::FocusPolicy QCalendarWidgetPrivate::oldFocusPolicy |
Definition at line 1674 of file qcalendarwidget.cpp.
Referenced by QCalendarWidgetPrivate(), _q_yearClicked(), and _q_yearEditingFinished().
QToolButton* QCalendarWidgetPrivate::prevMonth |
Definition at line 1663 of file qcalendarwidget.cpp.
Referenced by createNavigationBar(), updateButtonIcons(), and updateMonthMenu().
QSpacerItem* QCalendarWidgetPrivate::spaceHolder |
Definition at line 1670 of file qcalendarwidget.cpp.
Referenced by _q_yearClicked(), _q_yearEditingFinished(), and createNavigationBar().
QCalToolButton* QCalendarWidgetPrivate::yearButton |
Definition at line 1667 of file qcalendarwidget.cpp.
Referenced by _q_yearClicked(), _q_yearEditingFinished(), createNavigationBar(), and updateNavigationBar().
QSpinBox* QCalendarWidgetPrivate::yearEdit |
Definition at line 1668 of file qcalendarwidget.cpp.
Referenced by _q_yearClicked(), _q_yearEditingFinished(), createNavigationBar(), and updateNavigationBar().