Changeset View
Changeset View
Standalone View
Standalone View
client.cpp
Show First 20 Lines • Show All 1507 Lines • ▼ Show 20 Line(s) | 1507 | if (!cap_suffix.isEmpty()) { | |||
---|---|---|---|---|---|
1508 | if (!cap_iconic.isEmpty()) // Keep the same suffix in iconic name if it's set | 1508 | if (!cap_iconic.isEmpty()) // Keep the same suffix in iconic name if it's set | ||
1509 | info->setVisibleIconName(QString(s + cap_suffix).toUtf8().constData()); | 1509 | info->setVisibleIconName(QString(s + cap_suffix).toUtf8().constData()); | ||
1510 | else if (was_set) | 1510 | else if (was_set) | ||
1511 | info->setVisibleIconName(""); | 1511 | info->setVisibleIconName(""); | ||
1512 | } | 1512 | } | ||
1513 | } | 1513 | } | ||
1514 | } | 1514 | } | ||
1515 | 1515 | | |||
1516 | /** | | |||
1517 | * \reimp | | |||
1518 | */ | | |||
1519 | QString Client::caption(bool full) const | | |||
1520 | { | | |||
1521 | QString cap = cap_normal; | | |||
1522 | if (full) { | | |||
1523 | cap += cap_suffix; | | |||
1524 | if (unresponsive()) { | | |||
1525 | cap += QLatin1String(" "); | | |||
1526 | cap += i18nc("Application is not responding, appended to window title", "(Not Responding)"); | | |||
1527 | } | | |||
1528 | } | | |||
1529 | return cap; | | |||
1530 | } | | |||
1531 | | ||||
1532 | bool Client::tabTo(Client *other, bool behind, bool activate) | 1516 | bool Client::tabTo(Client *other, bool behind, bool activate) | ||
1533 | { | 1517 | { | ||
1534 | Q_ASSERT(other && other != this); | 1518 | Q_ASSERT(other && other != this); | ||
1535 | 1519 | | |||
1536 | if (tab_group && tab_group == other->tabGroup()) { // special case: move inside group | 1520 | if (tab_group && tab_group == other->tabGroup()) { // special case: move inside group | ||
1537 | tab_group->move(this, other, behind); | 1521 | tab_group->move(this, other, behind); | ||
1538 | return true; | 1522 | return true; | ||
1539 | } | 1523 | } | ||
▲ Show 20 Lines • Show All 643 Lines • Show Last 20 Lines |