Diffstat (limited to 'core/settings/launcher/tabdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/settings/launcher/tabdialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/settings/launcher/tabdialog.cpp b/core/settings/launcher/tabdialog.cpp index abe310f..bd51628 100644 --- a/core/settings/launcher/tabdialog.cpp +++ b/core/settings/launcher/tabdialog.cpp | |||
@@ -284,48 +284,49 @@ TabDialog::TabDialog ( const QPixmap *tabicon, const QString &tabname, TabConfig | |||
284 | 284 | ||
285 | tw-> addTab ( bgtab = createBgTab ( tw ), "appearance/color", tr( "Background" )); | 285 | tw-> addTab ( bgtab = createBgTab ( tw ), "appearance/color", tr( "Background" )); |
286 | tw-> addTab ( createFontTab ( tw ), "font", tr( "Font" )); | 286 | tw-> addTab ( createFontTab ( tw ), "font", tr( "Font" )); |
287 | tw-> addTab ( createIconTab ( tw ), "pixmap", tr( "Icons" ) ); | 287 | tw-> addTab ( createIconTab ( tw ), "pixmap", tr( "Icons" ) ); |
288 | 288 | ||
289 | tw-> setCurrentTab ( bgtab ); | 289 | tw-> setCurrentTab ( bgtab ); |
290 | 290 | ||
291 | QWidget *sample = new QVBox ( this ); | 291 | QWidget *sample = new QVBox ( this ); |
292 | QTabBar *tb = new QTabBar ( sample ); | 292 | QTabBar *tb = new QTabBar ( sample ); |
293 | QString name ( tr( "Previewing %1" ). arg ( tabname )); | 293 | QString name ( tr( "Previewing %1" ). arg ( tabname )); |
294 | 294 | ||
295 | tb-> addTab ( tabicon ? new QTab ( *tabicon, name ) : new QTab ( name )); | 295 | tb-> addTab ( tabicon ? new QTab ( *tabicon, name ) : new QTab ( name )); |
296 | 296 | ||
297 | m_sample = new SampleView ( sample ); | 297 | m_sample = new SampleView ( sample ); |
298 | 298 | ||
299 | lay-> addWidget ( tw, 10 ); | 299 | lay-> addWidget ( tw, 10 ); |
300 | lay-> addWidget ( sample, 1 ); | 300 | lay-> addWidget ( sample, 1 ); |
301 | 301 | ||
302 | m_iconsize-> setButton ( tc. m_view ); | 302 | m_iconsize-> setButton ( tc. m_view ); |
303 | iconSizeClicked ( tc. m_view ); | 303 | iconSizeClicked ( tc. m_view ); |
304 | //m_iconcolor-> setColor ( QColor ( m_tc. m_text_color )); | 304 | //m_iconcolor-> setColor ( QColor ( m_tc. m_text_color )); |
305 | iconColorClicked ( m_iconcolor-> color ( )); | 305 | iconColorClicked ( m_iconcolor-> color ( )); |
306 | m_bgtype-> setButton ( tc. m_bg_type ); | 306 | m_bgtype-> setButton ( tc. m_bg_type ); |
307 | //m_solidcolor-> setColor ( QColor ( tc. m_bg_color )); | 307 | //m_solidcolor-> setColor ( QColor ( tc. m_bg_color )); |
308 | m_iconcolumns->setValue( tc. m_iconcolumns ); | ||
308 | m_bgimage = tc. m_bg_image; | 309 | m_bgimage = tc. m_bg_image; |
309 | bgTypeClicked ( tc. m_bg_type ); | 310 | bgTypeClicked ( tc. m_bg_type ); |
310 | m_fontuse-> setChecked ( tc. m_font_use ); | 311 | m_fontuse-> setChecked ( tc. m_font_use ); |
311 | m_fontselect-> setSelectedFont ( QFont ( tc. m_font_family, tc. m_font_size, tc. m_font_weight, tc. m_font_italic )); | 312 | m_fontselect-> setSelectedFont ( QFont ( tc. m_font_family, tc. m_font_size, tc. m_font_weight, tc. m_font_italic )); |
312 | m_fontselect-> setEnabled ( m_fontuse-> isChecked ( )); | 313 | m_fontselect-> setEnabled ( m_fontuse-> isChecked ( )); |
313 | fontClicked ( m_fontselect-> selectedFont ( )); | 314 | fontClicked ( m_fontselect-> selectedFont ( )); |
314 | 315 | ||
315 | QWhatsThis::add ( sample, tr( "This is a rough preview of what the currently selected Tab will look like." )); | 316 | QWhatsThis::add ( sample, tr( "This is a rough preview of what the currently selected Tab will look like." )); |
316 | } | 317 | } |
317 | 318 | ||
318 | 319 | ||
319 | TabDialog::~TabDialog ( ) | 320 | TabDialog::~TabDialog ( ) |
320 | { | 321 | { |
321 | } | 322 | } |
322 | 323 | ||
323 | QWidget *TabDialog::createFontTab ( QWidget *parent ) | 324 | QWidget *TabDialog::createFontTab ( QWidget *parent ) |
324 | { | 325 | { |
325 | QWidget *tab = new QWidget ( parent, "FontTab" ); | 326 | QWidget *tab = new QWidget ( parent, "FontTab" ); |
326 | QVBoxLayout *vertLayout = new QVBoxLayout ( tab, 3, 3 ); | 327 | QVBoxLayout *vertLayout = new QVBoxLayout ( tab, 3, 3 ); |
327 | 328 | ||
328 | m_fontuse = new QCheckBox ( tr( "Use a custom font" ), tab ); | 329 | m_fontuse = new QCheckBox ( tr( "Use a custom font" ), tab ); |
329 | vertLayout-> addWidget ( m_fontuse ); | 330 | vertLayout-> addWidget ( m_fontuse ); |
330 | 331 | ||
331 | m_fontselect = new OFontSelector ( false, tab, "fontsel" ); | 332 | m_fontselect = new OFontSelector ( false, tab, "fontsel" ); |