Changeset View
Changeset View
Standalone View
Standalone View
Modules/about-distro/src/Module.cpp
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 77 | { | |||
---|---|---|---|---|---|
99 | fontVariant.setPixelSize(18); | 99 | fontVariant.setPixelSize(18); | ||
100 | fontVariant.setBold(true); | 100 | fontVariant.setBold(true); | ||
101 | ui->variantLabel->setFont(fontVariant); | 101 | ui->variantLabel->setFont(fontVariant); | ||
102 | 102 | | |||
103 | ui->urlLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse); | 103 | ui->urlLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse); | ||
104 | 104 | | |||
105 | // We have no help so remove the button from the buttons. | 105 | // We have no help so remove the button from the buttons. | ||
106 | setButtons(buttons() ^ KCModule::Help ^ KCModule::Default ^ KCModule::Apply); | 106 | setButtons(buttons() ^ KCModule::Help ^ KCModule::Default ^ KCModule::Apply); | ||
107 | | ||||
108 | // https://bugs.kde.org/show_bug.cgi?id=366158 | ||||
109 | // When a KCM loads fast enough do a blocking load via the constructor. | ||||
110 | // Otherwise there is a notciable rendering gap where dummy/no data is | ||||
111 | // shown. Makes it look bad. | ||||
112 | load(); | ||||
107 | } | 113 | } | ||
108 | 114 | | |||
109 | Module::~Module() | 115 | Module::~Module() | ||
110 | { | 116 | { | ||
111 | delete ui; | 117 | delete ui; | ||
112 | } | 118 | } | ||
113 | 119 | | |||
114 | void Module::load() | 120 | void Module::load() | ||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |