Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/shell/workingsets/workingsettooltipwidget.cpp
Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Line(s) | 161 | foreach(const QString& file, m_set->fileList()) { | |||
---|---|---|---|---|---|
172 | 172 | | |||
173 | QToolButton* plusButton = new QToolButton; | 173 | QToolButton* plusButton = new QToolButton; | ||
174 | plusButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Maximum); | 174 | plusButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Maximum); | ||
175 | fileLayout->addWidget(plusButton); | 175 | fileLayout->addWidget(plusButton); | ||
176 | 176 | | |||
177 | WorkingSetFileLabel* fileLabel = new WorkingSetFileLabel; | 177 | WorkingSetFileLabel* fileLabel = new WorkingSetFileLabel; | ||
178 | fileLabel->setTextFormat(Qt::RichText); | 178 | fileLabel->setTextFormat(Qt::RichText); | ||
179 | // We add spaces behind and after, to make it look nicer | 179 | // We add spaces behind and after, to make it look nicer | ||
180 | fileLabel->setText(" " + Core::self()->projectController()->prettyFileName(QUrl::fromUserInput(file)) + " "); | 180 | fileLabel->setText(QLatin1String(" ") + Core::self()->projectController()->prettyFileName(QUrl::fromUserInput(file)) + QLatin1String(" ")); | ||
181 | fileLabel->setToolTip(i18nc("@info:tooltip", "Click to open and activate this document.")); | 181 | fileLabel->setToolTip(i18nc("@info:tooltip", "Click to open and activate this document.")); | ||
182 | fileLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); | 182 | fileLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); | ||
183 | fileLayout->addWidget(fileLabel); | 183 | fileLayout->addWidget(fileLabel); | ||
184 | fileLayout->setMargin(0); | 184 | fileLayout->setMargin(0); | ||
185 | 185 | | |||
186 | plusButton->setMaximumHeight(fileLabel->sizeHint().height() + 4); | 186 | plusButton->setMaximumHeight(fileLabel->sizeHint().height() + 4); | ||
187 | plusButton->setMaximumWidth(plusButton->maximumHeight()); | 187 | plusButton->setMaximumWidth(plusButton->maximumHeight()); | ||
188 | 188 | | |||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |