32 #include <QScrollArea>
33 #include <QGridLayout>
46 l->addWidget(scrollArea);
48 shortDateFormat = addItem(
"Date format (short):");
49 longDateFormat = addItem(
"Date format (long):");
50 shortTimeFormat = addItem(
"Time format (short):");
51 longTimeFormat = addItem(
"Time format (long):");
52 shortDateTimeFormat = addItem(
"DateTime format (short):");
53 longDateTimeFormat = addItem(
"DateTime format (long):");
54 amText = addItem(
"Before noon:");
55 pmText = addItem(
"After noon:");
56 firstDayOfWeek = addItem(
"First day of week:");
60 standaloneMonthNamesShort =
new QComboBox;
87 static const char *
names[] = {
88 "Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
93 void DateFormatsWidget::localeChanged(
QLocale locale)
122 monthNamesShort->
clear();
123 monthNamesLong->
clear();
124 standaloneMonthNamesShort->
clear();
125 standaloneMonthNamesLong->
clear();
126 dayNamesLong->
clear();
127 dayNamesShort->
clear();
128 standaloneDayNamesLong->
clear();
129 standaloneDayNamesShort->
clear();
131 for (
int i = 1;
i <= 12; ++
i)
134 for (
int i = 1;
i <= 12; ++
i)
138 for (
int i = 1;
i <= 12; ++
i)
141 for (
int i = 1;
i <= 12; ++
i)
145 for (
int i = 1;
i <= 7; ++
i)
148 for (
int i = 1;
i <= 7; ++
i)
152 for (
int i = 1;
i <= 7; ++
i)
155 for (
int i = 1;
i <= 7; ++
i)
171 le->setReadOnly(
true);
small capitals from c petite p scientific i
[1]
The QComboBox widget is a combined button and popup list.
void addItem(const QString &text, const QVariant &userData=QVariant())
int currentIndex
the index of the current item in the combobox.
void setCurrentIndex(int index)
The QDateTime class provides date and time functions.
static QDateTime currentDateTime()
The QGridLayout class lays out widgets in a grid.
void addWidget(QWidget *w)
The QLabel widget provides a text or image display.
The QLineEdit widget is a one-line text editor.
void setText(const QString &)
QString dateTimeFormat(FormatType format=LongFormat) const
QString dateFormat(FormatType format=LongFormat) const
Qt::DayOfWeek firstDayOfWeek() const
QString dayName(int, FormatType format=LongFormat) const
QString timeFormat(FormatType format=LongFormat) const
QString monthName(int, FormatType format=LongFormat) const
QString toString(qlonglong i) const
QString standaloneMonthName(int, FormatType format=LongFormat) const
QString standaloneDayName(int, FormatType format=LongFormat) const
The QString class provides a Unicode character string.
static QString fromLatin1(QByteArrayView ba)
The QVBoxLayout class lines up widgets vertically.
GLfloat GLfloat GLfloat w
[0]
GLuint GLsizei const GLchar * label
[43]
GLenum GLenum GLsizei void * row