Changeset View
Changeset View
Standalone View
Standalone View
shell/uicontroller.cpp
Show First 20 Lines • Show All 428 Lines • ▼ Show 20 Line(s) | 426 | { | |||
---|---|---|---|---|---|
429 | saveAllAreas(KSharedConfig::openConfig()); | 429 | saveAllAreas(KSharedConfig::openConfig()); | ||
430 | } | 430 | } | ||
431 | 431 | | |||
432 | void UiController::selectNewToolViewToAdd(MainWindow *mw) | 432 | void UiController::selectNewToolViewToAdd(MainWindow *mw) | ||
433 | { | 433 | { | ||
434 | if (!mw || !mw->area()) | 434 | if (!mw || !mw->area()) | ||
435 | return; | 435 | return; | ||
436 | 436 | | |||
437 | QDialog *dia = new QDialog(mw); | 437 | QPointer<QDialog> dia = new QDialog(mw); | ||
438 | dia->setWindowTitle(i18n("Select Tool View to Add")); | 438 | dia->setWindowTitle(i18n("Select Tool View to Add")); | ||
439 | 439 | | |||
440 | auto mainLayout = new QVBoxLayout(dia); | 440 | auto mainLayout = new QVBoxLayout(dia); | ||
441 | 441 | | |||
442 | NewToolViewListWidget *list = new NewToolViewListWidget(mw, dia); | 442 | NewToolViewListWidget *list = new NewToolViewListWidget(mw, dia); | ||
443 | 443 | | |||
444 | list->setSelectionMode(QAbstractItemView::ExtendedSelection); | 444 | list->setSelectionMode(QAbstractItemView::ExtendedSelection); | ||
445 | list->setSortingEnabled(true); | 445 | list->setSortingEnabled(true); | ||
▲ Show 20 Lines • Show All 313 Lines • Show Last 20 Lines |