Changeset View
Changeset View
Standalone View
Standalone View
client.cpp
Show First 20 Lines • Show All 1490 Lines • ▼ Show 20 Line(s) | 1490 | if (!cap_suffix.isEmpty()) { | |||
---|---|---|---|---|---|
1491 | if (!cap_iconic.isEmpty()) // Keep the same suffix in iconic name if it's set | 1491 | if (!cap_iconic.isEmpty()) // Keep the same suffix in iconic name if it's set | ||
1492 | info->setVisibleIconName(QString(s + cap_suffix).toUtf8().constData()); | 1492 | info->setVisibleIconName(QString(s + cap_suffix).toUtf8().constData()); | ||
1493 | else if (was_set) | 1493 | else if (was_set) | ||
1494 | info->setVisibleIconName(""); | 1494 | info->setVisibleIconName(""); | ||
1495 | } | 1495 | } | ||
1496 | } | 1496 | } | ||
1497 | } | 1497 | } | ||
1498 | 1498 | | |||
1499 | /** | | |||
1500 | * \reimp | | |||
1501 | */ | | |||
1502 | QString Client::caption(bool full) const | | |||
1503 | { | | |||
1504 | QString cap = cap_normal; | | |||
1505 | if (full) { | | |||
1506 | cap += cap_suffix; | | |||
1507 | if (unresponsive()) { | | |||
1508 | cap += QLatin1String(" "); | | |||
1509 | cap += i18nc("Application is not responding, appended to window title", "(Not Responding)"); | | |||
1510 | } | | |||
1511 | } | | |||
1512 | return cap; | | |||
1513 | } | | |||
1514 | | ||||
1515 | bool Client::tabTo(Client *other, bool behind, bool activate) | 1499 | bool Client::tabTo(Client *other, bool behind, bool activate) | ||
1516 | { | 1500 | { | ||
1517 | Q_ASSERT(other && other != this); | 1501 | Q_ASSERT(other && other != this); | ||
1518 | 1502 | | |||
1519 | if (tab_group && tab_group == other->tabGroup()) { // special case: move inside group | 1503 | if (tab_group && tab_group == other->tabGroup()) { // special case: move inside group | ||
1520 | tab_group->move(this, other, behind); | 1504 | tab_group->move(this, other, behind); | ||
1521 | return true; | 1505 | return true; | ||
1522 | } | 1506 | } | ||
▲ Show 20 Lines • Show All 641 Lines • Show Last 20 Lines |