|
Lines 14-19
Link Here
|
| 14 |
#include <qtimer.h> |
14 |
#include <qtimer.h> |
| 15 |
#include <qfont.h> |
15 |
#include <qfont.h> |
| 16 |
#include <qstring.h> |
16 |
#include <qstring.h> |
|
|
17 |
#include <qsettings.h> |
| 17 |
|
18 |
|
| 18 |
#include <unistd.h> |
19 |
#include <unistd.h> |
| 19 |
|
20 |
|
|
Lines 95-102
Link Here
|
| 95 |
y2cc.resize( available.width(), available.height() ); |
96 |
y2cc.resize( available.width(), available.height() ); |
| 96 |
y2cc.move( available.topLeft() ); |
97 |
y2cc.move( available.topLeft() ); |
| 97 |
} |
98 |
} |
| 98 |
else |
99 |
else { |
| 99 |
y2cc.resize( 680, 365 ); |
100 |
QSettings settings; |
|
|
101 |
settings.setPath( "Novell.com", "YaST Control Center" ); |
| 102 |
int width = QMAX( settings.readNumEntry( "/geometry/width" ), 680 ); |
| 103 |
int height = QMAX( settings.readNumEntry( "/geometry/height") , 365 ); |
| 104 |
|
| 105 |
y2cc.resize( width, height ); |
| 106 |
} |
| 100 |
|
107 |
|
| 101 |
app.setMainWidget( &y2cc ); |
108 |
app.setMainWidget( &y2cc ); |
| 102 |
|
109 |
|
|
Lines 119-125
Link Here
|
| 119 |
|
126 |
|
| 120 |
QTimer::singleShot( 0, &y2cc, SLOT( configure() ) ); |
127 |
QTimer::singleShot( 0, &y2cc, SLOT( configure() ) ); |
| 121 |
|
128 |
|
| 122 |
return app.exec(); |
129 |
int ret = app.exec(); |
|
|
130 |
|
| 131 |
QSettings settings; |
| 132 |
settings.setPath( "Novell.com", "YaST Control Center" ); |
| 133 |
settings.writeEntry( "/geometry/width", y2cc.width() ); |
| 134 |
settings.writeEntry( "/geometry/height", y2cc.height() ); |
| 135 |
|
| 136 |
return ret; |
| 123 |
} |
137 |
} |
| 124 |
|
138 |
|
| 125 |
// vim: sw=4 |
139 |
// vim: sw=4 |