mirror of
https://github.com/KDE/konsole.git
synced 2026-06-16 17:58:59 -04:00
Prepare for adding functionality code
This commit is contained in:
@@ -85,6 +85,7 @@ MainWindow::MainWindow()
|
||||
// create actions for menus
|
||||
setupActions();
|
||||
|
||||
|
||||
// create view manager
|
||||
_viewManager = new ViewManager(this, actionCollection());
|
||||
connect(_viewManager , SIGNAL(empty()) , this , SLOT(close()));
|
||||
@@ -131,6 +132,10 @@ MainWindow::MainWindow()
|
||||
|
||||
// enable save and restore of window size
|
||||
setAutoSaveSettings("MainWindow", true);
|
||||
|
||||
// this must come at the end
|
||||
applyAppSettings();
|
||||
connect(AppSettings::self(), SIGNAL(configChanged()), this, SLOT(applyAppSettings()));
|
||||
}
|
||||
void MainWindow::removeMenuAccelerators()
|
||||
{
|
||||
@@ -523,6 +528,11 @@ void MainWindow::showSettingsDialog()
|
||||
settingsDialog->show();
|
||||
}
|
||||
|
||||
void MainWindow::applyAppSettings()
|
||||
{
|
||||
// setAutoSaveSettings("MainWindow", AppSettings::saveGeometryOnExit());
|
||||
}
|
||||
|
||||
void MainWindow::activateMenuBar()
|
||||
{
|
||||
const QList<QAction*> menuActions = menuBar()->actions();
|
||||
|
||||
Reference in New Issue
Block a user