コード例 #1
0
ファイル: screenshoter.cpp プロジェクト: JeCat/kate
void ScreenShoter::createConnects()
{
    //主窗口信号槽*****************************************************************

    connect(ui->pbtnShot, SIGNAL(clicked()), this, SLOT(grapWindowScreen()));
    connect(ui->pbtnShotAndMin, SIGNAL(clicked()), this, SLOT(miniWindows()));
    connect(ui->pbtnMin, SIGNAL(clicked()), this, SLOT(miniWindows()));

    connect(savePixmap, SIGNAL(triggered()), this, SLOT(saveShotPixmap()));

    //主窗口信号槽*****************************************************************

    //托盘信号槽*******************************************************************

    connect(restore, SIGNAL(triggered()), this, SLOT(restoreWindows()));
    connect(mini, SIGNAL(triggered()), this, SLOT(miniWindows()));
    connect(quit, SIGNAL(triggered()), this, SLOT(quitApplication()));

    //托盘信号槽*******************************************************************
}
コード例 #2
0
ファイル: screenshoter.cpp プロジェクト: JeCat/kate
void ScreenShoter::miniWindows()
{
    showMinimized();
    grapWindowScreen();
}
コード例 #3
0
ファイル: screenshots.cpp プロジェクト: chenyangGH/MyLabel
void Widget::miniWindows()
{
    showMinimized();
    grapWindowScreen();
}