251
251
d->m_windowButtonWidget->setVisible(showWindowButtons);
253
d->m_label->setVisible(showAppLabel || showDesktopLabel);
259
// When maximized, show window title
260
BamfWindow* bamfWindow = BamfMatcher::get_default().active_window();
262
text = bamfWindow->name();
253
if (showAppLabel || showDesktopLabel) {
254
d->m_label->setVisible(true);
260
// When maximized, show window title
261
BamfWindow* bamfWindow = BamfMatcher::get_default().active_window();
263
text = bamfWindow->name();
266
// When not maximized, show application name
265
// When not maximized, show application name
270
d->m_label->setText(text);
271
} else if (showDesktopLabel) {
272
d->m_label->setText(u2dTr("Desktop", "nautilus"));
269
d->m_label->setText(text);
275
// Define label width
272
276
if (!isMaximized && showMenu) {
273
277
d->m_label->setMaximumWidth(LauncherClient::MaximumWidth);
275
279
d->m_label->setMaximumWidth(QWIDGETSIZE_MAX);
277
} else if (showDesktopLabel) {
278
d->m_label->setText(u2dTr("Desktop", "nautilus"));
282
d->m_label->setVisible(false);
281
285
d->m_menuBarWidget->setVisible(showMenu);