summaryrefslogtreecommitdiffstats
path: root/tests/manual/qlocale/window.h
blob: 58a7d75dbef20f606ba523b6c75537968b952400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef WINDOW_H
#define WINDOW_H

#include <QMainWindow>

#include "calendar.h"
#include "currency.h"
#include "languages.h"
#include "dateformats.h"
#include "numberformats.h"
#include "miscellaneous.h"
#include "info.h"

class QLabel;
class QComboBox;

class Window : public QMainWindow
{
    Q_OBJECT
public:
    Window();

    QLabel *localeName;
    QComboBox *localeCombo;
    QTabWidget *tabWidget;
    CalendarWidget *calendar;
    CurrencyWidget *currency;
    LanguagesWidget *languages;
    DateFormatsWidget *dateFormats;
    NumberFormatsWidget *numberFormats;
    MiscWidget *miscellaneous;
    InfoWidget *info;

private:
    bool event(QEvent *);
    void systemLocaleChanged();

signals:
    void localeChanged(QLocale);

private slots:
    void localeChanged(int);
};

#endif