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())); //托盘信号槽******************************************************************* }
void ScreenShoter::miniWindows() { showMinimized(); grapWindowScreen(); }
void Widget::miniWindows() { showMinimized(); grapWindowScreen(); }