Changeset View
Changeset View
Standalone View
Standalone View
app/SettingsBase.cpp
Show First 20 Lines • Show All 369 Lines • ▼ Show 20 Line(s) | 354 | { | |||
---|---|---|---|---|---|
370 | else { // Otherwise we activate the failsafe | 370 | else { // Otherwise we activate the failsafe | ||
371 | activeView = possibleViews.begin().value(); | 371 | activeView = possibleViews.begin().value(); | ||
372 | } | 372 | } | ||
373 | 373 | | |||
374 | if( stackedWidget->indexOf(activeView->mainWidget()) == -1 ) { | 374 | if( stackedWidget->indexOf(activeView->mainWidget()) == -1 ) { | ||
375 | stackedWidget->addWidget(activeView->mainWidget()); | 375 | stackedWidget->addWidget(activeView->mainWidget()); | ||
376 | } | 376 | } | ||
377 | 377 | | |||
378 | show(); | ||||
379 | | ||||
378 | // Handle the tooltips | 380 | // Handle the tooltips | ||
379 | qDeleteAll( tooltipManagers ); | 381 | qDeleteAll( tooltipManagers ); | ||
380 | tooltipManagers.clear(); | 382 | tooltipManagers.clear(); | ||
381 | if ( BaseConfig::showToolTips() ) { | 383 | if ( BaseConfig::showToolTips() ) { | ||
382 | QList<QAbstractItemView*> theViews = activeView->views(); | 384 | QList<QAbstractItemView*> theViews = activeView->views(); | ||
383 | foreach ( QAbstractItemView* view, theViews ) { | 385 | foreach ( QAbstractItemView* view, theViews ) { | ||
384 | tooltipManagers << new ToolTipManager( view ); | 386 | tooltipManagers << new ToolTipManager( view ); | ||
385 | } | 387 | } | ||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |