Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/listpanel.cpp
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Line(s) | 100 | ActionButton(QWidget *parent, ListPanel *panel, QAction *action, const QString& text = QString()) : | |||
---|---|---|---|---|---|
102 | setText(text); | 102 | setText(text); | ||
103 | setAutoRaise(true); | 103 | setAutoRaise(true); | ||
104 | if(KConfigGroup(krConfig, "ListPanelButtons").readEntry("Icons", false) || text.isEmpty()) | 104 | if(KConfigGroup(krConfig, "ListPanelButtons").readEntry("Icons", false) || text.isEmpty()) | ||
105 | setIcon(action->icon()); | 105 | setIcon(action->icon()); | ||
106 | setToolTip(action->toolTip()); | 106 | setToolTip(action->toolTip()); | ||
107 | } | 107 | } | ||
108 | 108 | | |||
109 | protected: | 109 | protected: | ||
110 | void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE { | 110 | void mousePressEvent(QMouseEvent *) override { | ||
111 | panel->slotFocusOnMe(); | 111 | panel->slotFocusOnMe(); | ||
112 | action->trigger(); | 112 | action->trigger(); | ||
113 | } | 113 | } | ||
114 | 114 | | |||
115 | ListPanel *panel; | 115 | ListPanel *panel; | ||
116 | QAction *action; | 116 | QAction *action; | ||
117 | }; | 117 | }; | ||
118 | 118 | | |||
▲ Show 20 Lines • Show All 1258 Lines • Show Last 20 Lines |