Fixed Qt warning on my custom workspace change slot

Added Windows icon


FossilOrigin-Name: dc4d1a0ea7eea22ee41170f366c08f09368735a7
This commit is contained in:
kostas
2011-08-06 06:03:06 +00:00
parent 6c08987733
commit 4beebf9b30
8 changed files with 26 additions and 17 deletions

View File

@ -76,7 +76,7 @@ MainWindow::MainWindow(QWidget *parent) :
{
recentWorkspaceActs[i] = new QAction(this);
recentWorkspaceActs[i]->setVisible(false);
connect(recentWorkspaceActs[i], SIGNAL(triggered()), this, SLOT(on_openRecent_triggered()));
connect(recentWorkspaceActs[i], SIGNAL(triggered()), this, SLOT(onOpenRecent()));
ui->menuFile->insertAction(recent_sep, recentWorkspaceActs[i]);
}
@ -161,7 +161,7 @@ void MainWindow::rebuildRecent()
}
//------------------------------------------------------------------------------
void MainWindow::on_openRecent_triggered()
void MainWindow::onOpenRecent()
{
QAction *action = qobject_cast<QAction *>(sender());
if (action)