Changeset View
Changeset View
Standalone View
Standalone View
libs/widgetutils/xmlgui/kmainwindow.h
Show First 20 Lines • Show All 246 Lines • ▼ Show 20 Line(s) | 113 | public: | |||
---|---|---|---|---|---|
247 | * @param saveWindowSize set it to true to include the window size | 247 | * @param saveWindowSize set it to true to include the window size | ||
248 | * when saving. | 248 | * when saving. | ||
249 | * | 249 | * | ||
250 | * Typically, you will call setAutoSaveSettings() in your | 250 | * Typically, you will call setAutoSaveSettings() in your | ||
251 | * KMainWindow-inherited class constructor, and it will take care | 251 | * KMainWindow-inherited class constructor, and it will take care | ||
252 | * of restoring and saving automatically. Make sure you call this | 252 | * of restoring and saving automatically. Make sure you call this | ||
253 | * _after all_ your *bars have been created. | 253 | * _after all_ your *bars have been created. | ||
254 | * | 254 | * | ||
255 | * To make sure that KMainWindow propertly obtains the default | 255 | * To make sure that KMainWindow properly obtains the default | ||
256 | * size of the window you should do the following: | 256 | * size of the window you should do the following: | ||
257 | * - Remove hard coded resize() calls in the constructor or main, they | 257 | * - Remove hard coded resize() calls in the constructor or main, they | ||
258 | * should be removed in favor of letting the automatic resizing | 258 | * should be removed in favor of letting the automatic resizing | ||
259 | * determine the default window size. Hard coded window sizes will | 259 | * determine the default window size. Hard coded window sizes will | ||
260 | * be wrong for users that have big fonts, use different styles, | 260 | * be wrong for users that have big fonts, use different styles, | ||
261 | * long/small translations, large toolbars, and other factors. | 261 | * long/small translations, large toolbars, and other factors. | ||
262 | * - Put the setAutoSaveSettings ( or setupGUI() ) call after all widgets | 262 | * - Put the setAutoSaveSettings ( or setupGUI() ) call after all widgets | ||
263 | * have been created and placed inside the main window (i.e. for 99% of | 263 | * have been created and placed inside the main window (i.e. for 99% of | ||
▲ Show 20 Lines • Show All 352 Lines • Show Last 20 Lines |