Changeset View
Changeset View
Standalone View
Standalone View
krusader/GUI/dirhistorybutton.cpp
Show All 14 Lines | |||||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
16 | * GNU General Public License for more details. * | 16 | * GNU General Public License for more details. * | ||
17 | * * | 17 | * * | ||
18 | * You should have received a copy of the GNU General Public License * | 18 | * You should have received a copy of the GNU General Public License * | ||
19 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | 19 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | ||
20 | *****************************************************************************/ | 20 | *****************************************************************************/ | ||
21 | 21 | | |||
22 | #include "dirhistorybutton.h" | 22 | #include "dirhistorybutton.h" | ||
23 | #include "../icon.h" | ||||
23 | #include "../Panel/dirhistoryqueue.h" | 24 | #include "../Panel/dirhistoryqueue.h" | ||
24 | 25 | | |||
25 | #include "../FileSystem/filesystem.h" | 26 | #include "../FileSystem/filesystem.h" | ||
26 | 27 | | |||
27 | // QtCore | 28 | // QtCore | ||
28 | #include <QDebug> | 29 | #include <QDebug> | ||
29 | #include <QDir> | 30 | #include <QDir> | ||
30 | // QtGui | 31 | // QtGui | ||
31 | #include <QPixmap> | 32 | #include <QPixmap> | ||
32 | // QtWidgets | 33 | // QtWidgets | ||
33 | #include <QMenu> | 34 | #include <QMenu> | ||
34 | 35 | | |||
35 | #include <KI18n/KLocalizedString> | 36 | #include <KI18n/KLocalizedString> | ||
36 | 37 | | |||
37 | DirHistoryButton::DirHistoryButton(DirHistoryQueue* hQ, QWidget *parent) : QToolButton(parent) | 38 | DirHistoryButton::DirHistoryButton(DirHistoryQueue* hQ, QWidget *parent) : QToolButton(parent) | ||
38 | { | 39 | { | ||
39 | setAutoRaise(true); | 40 | setAutoRaise(true); | ||
40 | setIcon(QIcon::fromTheme("chronometer")); | 41 | setIcon(Icon("chronometer")); | ||
41 | setText(i18n("Open the folder history list")); | 42 | setText(i18n("Open the folder history list")); | ||
42 | setToolTip(i18n("Open the folder history list")); | 43 | setToolTip(i18n("Open the folder history list")); | ||
43 | setPopupMode(QToolButton::InstantPopup); | 44 | setPopupMode(QToolButton::InstantPopup); | ||
44 | setAcceptDrops(false); | 45 | setAcceptDrops(false); | ||
45 | 46 | | |||
46 | popupMenu = new QMenu(this); | 47 | popupMenu = new QMenu(this); | ||
47 | Q_CHECK_PTR(popupMenu); | 48 | Q_CHECK_PTR(popupMenu); | ||
48 | 49 | | |||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |