Changeset View
Changeset View
Standalone View
Standalone View
kcm/src/kcm_kscreen.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 53 | { | |||
---|---|---|---|---|---|
65 | setAboutData(about); | 65 | setAboutData(about); | ||
66 | 66 | | |||
67 | setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding); | 67 | setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding); | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | void KCMKScreen::configReady(ConfigOperation* op) | 70 | void KCMKScreen::configReady(ConfigOperation* op) | ||
71 | { | 71 | { | ||
72 | QHBoxLayout *layout = new QHBoxLayout(this); | 72 | QHBoxLayout *layout = new QHBoxLayout(this); | ||
73 | layout->setMargin(0); | ||||
73 | 74 | | |||
74 | if (op->hasError()) { | 75 | if (op->hasError()) { | ||
75 | mKScreenWidget = 0; | 76 | mKScreenWidget = 0; | ||
76 | delete mKScreenWidget; | 77 | delete mKScreenWidget; | ||
77 | QLabel *errorLabel = new QLabel(this); | 78 | QLabel *errorLabel = new QLabel(this); | ||
78 | layout->addWidget(errorLabel); | 79 | layout->addWidget(errorLabel); | ||
79 | errorLabel->setText(i18n("No kscreen backend found. Please check your kscreen installation.")); | 80 | errorLabel->setText(i18n("No kscreen backend found. Please check your kscreen installation.")); | ||
80 | return; | 81 | return; | ||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |