Changeset View
Changeset View
Standalone View
Standalone View
kmplot/maindlg.cpp
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Line(s) | 137 | { | |||
---|---|---|---|---|---|
178 | 178 | | |||
179 | //BEGIN undo/redo stuff | 179 | //BEGIN undo/redo stuff | ||
180 | m_currentState = kmplotio->currentState(); | 180 | m_currentState = kmplotio->currentState(); | ||
181 | m_saveCurrentStateTimer = new QTimer( this ); | 181 | m_saveCurrentStateTimer = new QTimer( this ); | ||
182 | m_saveCurrentStateTimer->setSingleShot( true ); | 182 | m_saveCurrentStateTimer->setSingleShot( true ); | ||
183 | connect( m_saveCurrentStateTimer, &QTimer::timeout, this, &MainDlg::saveCurrentState ); | 183 | connect( m_saveCurrentStateTimer, &QTimer::timeout, this, &MainDlg::saveCurrentState ); | ||
184 | //END undo/redo stuff | 184 | //END undo/redo stuff | ||
185 | 185 | | |||
186 | | ||||
187 | | ||||
188 | // Allow config manager to read from equation edits | | |||
189 | KConfigDialogManager::changedMap()->insert( "EquationEdit", SIGNAL(textEdited(QString)) ); | | |||
190 | // Let's create a Configure Dialog | 186 | // Let's create a Configure Dialog | ||
191 | m_settingsDialog = new KConfigDialog( parentWidget, "settings", Settings::self() ); | 187 | m_settingsDialog = new KConfigDialog( parentWidget, "settings", Settings::self() ); | ||
192 | 188 | | |||
193 | QMetaObject::invokeMethod(m_settingsDialog, "setHelp", Qt::DirectConnection, Q_ARG(QString, "configuration"), Q_ARG(QString, "kmplot")); | 189 | QMetaObject::invokeMethod(m_settingsDialog, "setHelp", Qt::DirectConnection, Q_ARG(QString, "configuration"), Q_ARG(QString, "kmplot")); | ||
194 | 190 | | |||
195 | // create and add the page(s) | 191 | // create and add the page(s) | ||
196 | m_generalSettings = new SettingsPageGeneral( View::self() ); | 192 | m_generalSettings = new SettingsPageGeneral( View::self() ); | ||
197 | m_colorSettings = new SettingsPageColor( View::self() ); | 193 | m_colorSettings = new SettingsPageColor( View::self() ); | ||
▲ Show 20 Lines • Show All 691 Lines • Show Last 20 Lines |