ZoneView improvements

This commit is contained in:
Max-Wilhelm Bruker 2009-04-10 16:07:27 +02:00
parent 88829d0f66
commit 939ab62273
19 changed files with 90 additions and 63 deletions

View file

@ -181,6 +181,11 @@ void MainWindow::createActions()
connect(aDeckEditor, SIGNAL(triggered()), this, SLOT(actDeckEditor()));
aExit = new QAction(tr("&Exit"), this);
connect(aExit, SIGNAL(triggered()), this, SLOT(actExit()));
aCloseMostRecentZoneView = new QAction(tr("Close most recent zone view"), this);
aCloseMostRecentZoneView->setShortcut(tr("Esc"));
connect(aCloseMostRecentZoneView, SIGNAL(triggered()), zoneLayout, SLOT(closeMostRecentZoneView()));
addAction(aCloseMostRecentZoneView);
}
void MainWindow::createMenus()
@ -208,8 +213,6 @@ MainWindow::MainWindow(QWidget *parent)
// setWindowState(windowState() | Qt::WindowFullScreen);
QPixmapCache::setCacheLimit(200000);
createActions();
createMenus();
db = new CardDatabase;
int cardCount = db->loadFromFile("../cards.dat");
@ -262,6 +265,9 @@ MainWindow::MainWindow(QWidget *parent)
connect(client, SIGNAL(welcomeMsgReceived(const QStringList)), messageLog, SLOT(logConnected(const QStringList)));
connect(this, SIGNAL(logDisconnected()), messageLog, SLOT(logDisconnected()));
connect(client, SIGNAL(logSocketError(const QString &)), messageLog, SLOT(logSocketError(const QString &)));
createActions();
createMenus();
}
void MainWindow::closeEvent(QCloseEvent *event)