summaryrefslogtreecommitdiff
path: root/tests/projects/qt/widgetapp_private_slot2/mainwindow.cpp
blob: aa6aee75c14d5f4e95b9a42f9c9eee939811fb8f (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
#include "mainwindow.h"
#include <QDebug>

class MainWindowPrivate:public QObject
{
    Q_OBJECT
public:
    MainWindow *q_ptr;
    Q_DECLARE_PUBLIC(MainWindow)
public:
    MainWindowPrivate(){}
    void mainWindow_slot(){qDebug()<<"mainWindow_slot";}
private:
     Q_PRIVATE_SLOT(q_ptr, void test())
};

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent)
{
    d_ptr = new MainWindowPrivate;
    d_ptr->q_ptr = this;
}

MainWindow::~MainWindow()
{

}

void MainWindow::test()
{

}

#include "moc_mainwindow.cpp"
#include "mainwindow.moc"