Changeset View
Changeset View
Standalone View
Standalone View
krusader/Konfigurator/kgstartup.cpp
Show All 39 Lines | 34 | { | |||
---|---|---|---|---|---|
40 | 40 | | |||
41 | // --------------------------- PANELS GROUPBOX ---------------------------------- | 41 | // --------------------------- PANELS GROUPBOX ---------------------------------- | ||
42 | 42 | | |||
43 | QGroupBox *panelsGrp = createFrame(i18n("General"), innerWidget); | 43 | QGroupBox *panelsGrp = createFrame(i18n("General"), innerWidget); | ||
44 | QGridLayout *panelsGrid = createGridLayout(panelsGrp); | 44 | QGridLayout *panelsGrid = createGridLayout(panelsGrp); | ||
45 | 45 | | |||
46 | QString s = "<p><img src='toolbar|user-identity'></p>" + i18n("Defines the panel profile used at startup. A panel profile contains:<ul><li>all the tabs paths</li><li>the current tab</li><li>the active panel</li></ul><b><Last session></b> is a special panel profile which is saved automatically when Krusader is closed."); | 46 | QString s = "<p><img src='toolbar|user-identity'></p>" + i18n("Defines the panel profile used at startup. A panel profile contains:<ul><li>all the tabs paths</li><li>the current tab</li><li>the active panel</li></ul><b><Last session></b> is a special panel profile which is saved automatically when Krusader is closed."); | ||
47 | QLabel *label = addLabel(panelsGrid, 0, 0, i18n("Startup profile:"), panelsGrp); | 47 | QLabel *label = addLabel(panelsGrid, 0, 0, i18n("Startup profile:"), panelsGrp); | ||
48 | label->setWhatsThis(s); | | |||
49 | panelsGrp->setWhatsThis(s); | 48 | panelsGrp->setWhatsThis(s); | ||
50 | 49 | | |||
51 | QStringList profileList = ProfileManager::availableProfiles("Panel"); | 50 | QStringList profileList = ProfileManager::availableProfiles("Panel"); | ||
52 | profileList.push_front(i18n("<Last session>")); | 51 | profileList.push_front(i18n("<Last session>")); | ||
53 | 52 | | |||
54 | const int profileListSize = profileList.size(); | 53 | const int profileListSize = profileList.size(); | ||
55 | auto *comboItems = new KONFIGURATOR_NAME_VALUE_PAIR[ profileListSize ]; | 54 | auto *comboItems = new KONFIGURATOR_NAME_VALUE_PAIR[ profileListSize ]; | ||
56 | for (int i = 0; i != profileListSize; i++) | 55 | for (int i = 0; i != profileListSize; i++) | ||
57 | comboItems[ i ].text = comboItems[ i ].value = profileList [ i ]; | 56 | comboItems[ i ].text = comboItems[ i ].value = profileList [ i ]; | ||
58 | comboItems[ 0 ].value = ""; | 57 | comboItems[ 0 ].value = ""; | ||
59 | 58 | | |||
60 | profileCombo = createComboBox("Startup", "Starter Profile Name", comboItems[ 0 ].value, comboItems, profileListSize, panelsGrp, false, false); | 59 | profileCombo = createComboBox("Startup", "Starter Profile Name", comboItems[ 0 ].value, | ||
60 | comboItems, profileListSize, label, panelsGrp, false, false); | ||||
61 | profileCombo->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); | 61 | profileCombo->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); | ||
62 | panelsGrid->addWidget(profileCombo, 0, 1); | 62 | panelsGrid->addWidget(profileCombo, 0, 1); | ||
63 | 63 | | |||
64 | delete [] comboItems; | 64 | delete [] comboItems; | ||
65 | 65 | | |||
66 | //------------------------------------------------ | 66 | //------------------------------------------------ | ||
67 | panelsGrid->addWidget(createLine(panelsGrp), 1, 0, 1, 2); | 67 | panelsGrid->addWidget(createLine(panelsGrp), 1, 0, 1, 2); | ||
68 | 68 | | |||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |