Changeset View
Changeset View
Standalone View
Standalone View
shell_client.cpp
Show First 20 Lines • Show All 550 Lines • ▼ Show 20 Line(s) | |||||
551 | 551 | | |||
552 | void ShellClient::blockActivityUpdates(bool b) | 552 | void ShellClient::blockActivityUpdates(bool b) | ||
553 | { | 553 | { | ||
554 | Q_UNUSED(b) | 554 | Q_UNUSED(b) | ||
555 | } | 555 | } | ||
556 | 556 | | |||
557 | QString ShellClient::caption(bool full) const | 557 | QString ShellClient::caption(bool full) const | ||
558 | { | 558 | { | ||
559 | Q_UNUSED(full) | 559 | QString caption = m_caption; | ||
560 | return m_caption; | 560 | if (full) { | ||
561 | caption += m_captionSuffix; | ||||
562 | } | ||||
563 | return caption; | ||||
564 | } | ||||
565 | | ||||
566 | void ShellClient::updateCaption() | ||||
567 | { | ||||
568 | const QString oldSuffix = m_captionSuffix; | ||||
569 | m_captionSuffix = shortcutCaptionSuffix(); | ||||
570 | if (m_captionSuffix != oldSuffix) { | ||||
571 | emit captionChanged(); | ||||
572 | } | ||||
561 | } | 573 | } | ||
562 | 574 | | |||
563 | void ShellClient::closeWindow() | 575 | void ShellClient::closeWindow() | ||
564 | { | 576 | { | ||
565 | if (m_xdgShellSurface && isCloseable()) { | 577 | if (m_xdgShellSurface && isCloseable()) { | ||
566 | m_xdgShellSurface->close(); | 578 | m_xdgShellSurface->close(); | ||
567 | return; | 579 | return; | ||
568 | } | 580 | } | ||
▲ Show 20 Lines • Show All 945 Lines • Show Last 20 Lines |