Changeset View
Changeset View
Standalone View
Standalone View
krusader/Konfigurator/kgadvanced.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 33 | { | |||
---|---|---|---|---|---|
47 | { | 47 | { | ||
48 | {"Advanced", "AutoMount", _AutoMount, i18n("Automount filesystems"), false, i18n("When stepping into a folder which is defined as a mount point in the <b>fstab</b>, try mounting it with the defined parameters.")} | 48 | {"Advanced", "AutoMount", _AutoMount, i18n("Automount filesystems"), false, i18n("When stepping into a folder which is defined as a mount point in the <b>fstab</b>, try mounting it with the defined parameters.")} | ||
49 | }; | 49 | }; | ||
50 | 50 | | |||
51 | KonfiguratorCheckBoxGroup *generals = createCheckBoxGroup(1, 0, generalSettings, 1, generalGrp); | 51 | KonfiguratorCheckBoxGroup *generals = createCheckBoxGroup(1, 0, generalSettings, 1, generalGrp); | ||
52 | 52 | | |||
53 | generalGrid->addWidget(generals, 1, 0); | 53 | generalGrid->addWidget(generals, 1, 0); | ||
54 | 54 | | |||
55 | addLabel(generalGrid, 2, 0, i18n("MountMan will not (un)mount the following mount-points:"), | 55 | QLabel *labelNonMount = addLabel(generalGrid, 2, 0, i18n("MountMan will not (un)mount the following mount-points:"), | ||
56 | generalGrp); | 56 | generalGrp); | ||
57 | KonfiguratorEditBox *nonMountPoints = createEditBox("Advanced", "Nonmount Points", _NonMountPoints, generalGrp, false); | 57 | KonfiguratorEditBox *nonMountPoints = createEditBox("Advanced", "Nonmount Points", _NonMountPoints, | ||
58 | labelNonMount, generalGrp, false); | ||||
58 | generalGrid->addWidget(nonMountPoints, 2, 1); | 59 | generalGrid->addWidget(nonMountPoints, 2, 1); | ||
59 | 60 | | |||
60 | 61 | | |||
61 | #ifdef BSD | 62 | #ifdef BSD | ||
62 | generals->find("AutoMount")->setEnabled(false); /* disable AutoMount on BSD */ | 63 | generals->find("AutoMount")->setEnabled(false); /* disable AutoMount on BSD */ | ||
63 | #endif | 64 | #endif | ||
64 | 65 | | |||
65 | kgAdvancedLayout->addWidget(generalGrp, 0 , 0); | 66 | kgAdvancedLayout->addWidget(generalGrp, 0 , 0); | ||
Show All 32 Lines | |||||
98 | const QString cacheTip = i18n("The icon cache size influences how fast the contents of a panel can be displayed. However, too large a cache might consume your memory."); | 99 | const QString cacheTip = i18n("The icon cache size influences how fast the contents of a panel can be displayed. However, too large a cache might consume your memory."); | ||
99 | QLabel *label = new QLabel(i18n("Icon cache size (KB):"), fineTuneGrp); | 100 | QLabel *label = new QLabel(i18n("Icon cache size (KB):"), fineTuneGrp); | ||
100 | fineTuneGrid->addWidget(label, 0, 0); | 101 | fineTuneGrid->addWidget(label, 0, 0); | ||
101 | KonfiguratorSpinBox *spinBox = createSpinBox("Advanced", "Icon Cache Size", _IconCacheSize, | 102 | KonfiguratorSpinBox *spinBox = createSpinBox("Advanced", "Icon Cache Size", _IconCacheSize, | ||
102 | 1, 8192, label, fineTuneGrp, false, cacheTip); | 103 | 1, 8192, label, fineTuneGrp, false, cacheTip); | ||
103 | spinBox->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); | 104 | spinBox->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); | ||
104 | fineTuneGrid->addWidget(spinBox, 0, 1); | 105 | fineTuneGrid->addWidget(spinBox, 0, 1); | ||
105 | 106 | | |||
106 | addLabel(fineTuneGrid, 1, 0, i18n("Arguments of updatedb:"), | 107 | QLabel *labelArgUpdate = addLabel(fineTuneGrid, 1, 0, i18n("Arguments of updatedb:"), | ||
107 | fineTuneGrp); | 108 | fineTuneGrp); | ||
108 | KonfiguratorEditBox *updatedbArgs = createEditBox("Locate", "UpdateDB Arguments", "", fineTuneGrp, false); | 109 | KonfiguratorEditBox *updatedbArgs = createEditBox("Locate", "UpdateDB Arguments", "", | ||
110 | labelArgUpdate, fineTuneGrp, false); | ||||
109 | fineTuneGrid->addWidget(updatedbArgs, 1, 1); | 111 | fineTuneGrid->addWidget(updatedbArgs, 1, 1); | ||
110 | 112 | | |||
111 | kgAdvancedLayout->addWidget(fineTuneGrp, 2 , 0); | 113 | kgAdvancedLayout->addWidget(fineTuneGrp, 2 , 0); | ||
112 | } | 114 | } | ||
113 | 115 | |