Changeset View
Changeset View
Standalone View
Standalone View
decorations/decoratedclient.cpp
Show All 12 Lines | |||||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "decoratedclient.h" | 20 | #include "decoratedclient.h" | ||
21 | #include "decorationbridge.h" | ||||
21 | #include "decorationpalette.h" | 22 | #include "decorationpalette.h" | ||
22 | #include "decorationrenderer.h" | 23 | #include "decorationrenderer.h" | ||
23 | #include "abstract_client.h" | 24 | #include "abstract_client.h" | ||
24 | #include "composite.h" | 25 | #include "composite.h" | ||
25 | #include "cursor.h" | 26 | #include "cursor.h" | ||
26 | #include "options.h" | 27 | #include "options.h" | ||
27 | #include "platform.h" | 28 | #include "platform.h" | ||
28 | #include "workspace.h" | 29 | #include "workspace.h" | ||
▲ Show 20 Lines • Show All 185 Lines • ▼ Show 20 Line(s) | 214 | if (dp) { | |||
214 | return dp->color(group, role); | 215 | return dp->color(group, role); | ||
215 | } | 216 | } | ||
216 | 217 | | |||
217 | return QColor(); | 218 | return QColor(); | ||
218 | } | 219 | } | ||
219 | 220 | | |||
220 | void DecoratedClientImpl::requestShowToolTip(const QString &text) | 221 | void DecoratedClientImpl::requestShowToolTip(const QString &text) | ||
221 | { | 222 | { | ||
223 | if (!DecorationBridge::self()->showToolTips()) { | ||||
224 | return; | ||||
225 | } | ||||
226 | | ||||
222 | m_toolTipText = text; | 227 | m_toolTipText = text; | ||
223 | 228 | | |||
224 | int wakeUpDelay = QApplication::style()->styleHint(QStyle::SH_ToolTip_WakeUpDelay); | 229 | int wakeUpDelay = QApplication::style()->styleHint(QStyle::SH_ToolTip_WakeUpDelay); | ||
225 | m_toolTipWakeUp.start(m_toolTipFallAsleep.hasExpired() ? wakeUpDelay : 20); | 230 | m_toolTipWakeUp.start(m_toolTipFallAsleep.hasExpired() ? wakeUpDelay : 20); | ||
226 | } | 231 | } | ||
227 | 232 | | |||
228 | void DecoratedClientImpl::requestHideToolTip() | 233 | void DecoratedClientImpl::requestHideToolTip() | ||
229 | { | 234 | { | ||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |