Exemplo n.º 1
0
    Private(MainWindow* qq)
        : q(qq)
        , allowClose(true)
        , sketchView(0)
        , desktopWindow(0)
        , currentView(0)
        , desktopCursorStyle(CURSOR_STYLE_NO_CURSOR)
        , slateMode(false)
        , docked(false)
        , sketchKisView(0)
        , desktopKisView(0)
        , desktopViewProxy(0)
        , forceFullScreen(false)
        , forceDesktop(false)
        , forceSketch(false)
        , temporaryFile(false)
        , syncObject(0)
        , toDesktop(0)
        , toSketch(0)
        , switcher(0)
    {
#ifdef Q_OS_WIN
//         slateMode = (GetSystemMetrics(SM_CONVERTIBLESLATEMODE) == 0);
//         docked = (GetSystemMetrics(SM_SYSTEMDOCKED) != 0);
#endif
        centerer = new QTimer(q);
        centerer->setInterval(10);
        centerer->setSingleShot(true);
        connect(centerer, SIGNAL(timeout()), q, SLOT(adjustZoomOnDocumentChangedAndStuff()));
}
Exemplo n.º 2
0
    Private(MainWindow* qq)
        : q(qq)
        , allowClose(true)
        , viewManager(0)
	{
        centerer = new QTimer(q);
        centerer->setInterval(10);
        centerer->setSingleShot(true);
        connect(centerer, SIGNAL(timeout()), q, SLOT(adjustZoomOnDocumentChangedAndStuff()));
	}