author | sandman <sandman> | 2002-10-01 20:59:06 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-01 20:59:06 (UTC) |
commit | 609b04531d5a1caae189397922eb0068aa0e2634 (patch) (unidiff) | |
tree | 170ae3b543b48cf2007de7dc0b580778efce9a2f /noncore/settings/appearance2 | |
parent | 2906826d9ebc268bc233f97956ee1dc5b338c69b (diff) | |
download | opie-609b04531d5a1caae189397922eb0068aa0e2634.zip opie-609b04531d5a1caae189397922eb0068aa0e2634.tar.gz opie-609b04531d5a1caae189397922eb0068aa0e2634.tar.bz2 |
adjusted to new OFontSelector c'tor
Diffstat (limited to 'noncore/settings/appearance2') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/appearance2/appearance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp index a5d216c..e269aec 100644 --- a/noncore/settings/appearance2/appearance.cpp +++ b/noncore/settings/appearance2/appearance.cpp | |||
@@ -230,49 +230,49 @@ QWidget *Appearance::createDecoTab ( QWidget *parent ) | |||
230 | 230 | ||
231 | loadDecos ( m_deco_list ); | 231 | loadDecos ( m_deco_list ); |
232 | 232 | ||
233 | QString s = config. readEntry ( "Decoration" ); | 233 | QString s = config. readEntry ( "Decoration" ); |
234 | m_deco_list-> setCurrentItem ( m_deco_list-> findItem ( s )); | 234 | m_deco_list-> setCurrentItem ( m_deco_list-> findItem ( s )); |
235 | m_original_deco = m_deco_list-> currentItem ( ); | 235 | m_original_deco = m_deco_list-> currentItem ( ); |
236 | if ( m_deco_list-> currentItem ( ) < 0 ) | 236 | if ( m_deco_list-> currentItem ( ) < 0 ) |
237 | m_deco_list-> setCurrentItem ( 0 ); | 237 | m_deco_list-> setCurrentItem ( 0 ); |
238 | decoClicked ( m_original_deco ); | 238 | decoClicked ( m_original_deco ); |
239 | 239 | ||
240 | connect( m_deco_list, SIGNAL( highlighted( int ) ), this, SLOT( decoClicked( int ) ) ); | 240 | connect( m_deco_list, SIGNAL( highlighted( int ) ), this, SLOT( decoClicked( int ) ) ); |
241 | 241 | ||
242 | return tab; | 242 | return tab; |
243 | } | 243 | } |
244 | 244 | ||
245 | QWidget *Appearance::createFontTab ( QWidget *parent ) | 245 | QWidget *Appearance::createFontTab ( QWidget *parent ) |
246 | { | 246 | { |
247 | Config config ( "qpe" ); | 247 | Config config ( "qpe" ); |
248 | config. setGroup ( "Appearance" ); | 248 | config. setGroup ( "Appearance" ); |
249 | 249 | ||
250 | QString familyStr = config.readEntry( "FontFamily", "Helvetica" ); | 250 | QString familyStr = config.readEntry( "FontFamily", "Helvetica" ); |
251 | QString styleStr = config.readEntry( "FontStyle", "Regular" ); | 251 | QString styleStr = config.readEntry( "FontStyle", "Regular" ); |
252 | int size = config.readNumEntry( "FontSize", 10 ); | 252 | int size = config.readNumEntry( "FontSize", 10 ); |
253 | 253 | ||
254 | m_fontselect = new OFontSelector ( parent, "FontTab" ); | 254 | m_fontselect = new OFontSelector ( false, parent, "FontTab" ); |
255 | m_fontselect-> setSelectedFont ( familyStr, styleStr, size ); | 255 | m_fontselect-> setSelectedFont ( familyStr, styleStr, size ); |
256 | 256 | ||
257 | connect( m_fontselect, SIGNAL( fontSelected ( const QFont & )), | 257 | connect( m_fontselect, SIGNAL( fontSelected ( const QFont & )), |
258 | this, SLOT( fontClicked ( const QFont & ))); | 258 | this, SLOT( fontClicked ( const QFont & ))); |
259 | 259 | ||
260 | return m_fontselect; | 260 | return m_fontselect; |
261 | } | 261 | } |
262 | 262 | ||
263 | QWidget *Appearance::createColorTab ( QWidget *parent ) | 263 | QWidget *Appearance::createColorTab ( QWidget *parent ) |
264 | { | 264 | { |
265 | Config config ( "qpe" ); | 265 | Config config ( "qpe" ); |
266 | config. setGroup ( "Appearance" ); | 266 | config. setGroup ( "Appearance" ); |
267 | 267 | ||
268 | 268 | ||
269 | QWidget *tab = new QWidget( parent, "ColorTab" ); | 269 | QWidget *tab = new QWidget( parent, "ColorTab" ); |
270 | QGridLayout *gridLayout = new QGridLayout( tab, 0, 0, 4, 4 ); | 270 | QGridLayout *gridLayout = new QGridLayout( tab, 0, 0, 4, 4 ); |
271 | gridLayout->setRowStretch ( 3, 10 ); | 271 | gridLayout->setRowStretch ( 3, 10 ); |
272 | 272 | ||
273 | m_color_list = new QListBox ( tab ); | 273 | m_color_list = new QListBox ( tab ); |
274 | gridLayout->addMultiCellWidget ( m_color_list, 0, 3, 0, 0 ); | 274 | gridLayout->addMultiCellWidget ( m_color_list, 0, 3, 0, 0 ); |
275 | connect( m_color_list, SIGNAL( highlighted( int ) ), this, SLOT( colorClicked( int ) ) ); | 275 | connect( m_color_list, SIGNAL( highlighted( int ) ), this, SLOT( colorClicked( int ) ) ); |
276 | 276 | ||
277 | loadColors ( m_color_list ); | 277 | loadColors ( m_color_list ); |
278 | m_color_list-> setCurrentItem ( 0 ); | 278 | m_color_list-> setCurrentItem ( 0 ); |