|
a/dirbrowser/dirbrowser.cpp |
|
b/dirbrowser/dirbrowser.cpp |
|
... |
|
... |
38 |
ui->setupUi(this);
|
38 |
ui->setupUi(this);
|
39 |
ui->searchFrame->hide();
|
39 |
ui->searchFrame->hide();
|
40 |
ui->tabs->setTabsClosable(true);
|
40 |
ui->tabs->setTabsClosable(true);
|
41 |
|
41 |
|
42 |
QToolButton *plusbut = new QToolButton(this);
|
42 |
QToolButton *plusbut = new QToolButton(this);
|
43 |
QString icon_path = Helper::getIconPath();
|
|
|
44 |
QIcon icon = QIcon(icon_path + "/addtab.png");
|
43 |
QIcon icon = QIcon(Helper::getIconPath("addtab.png"));
|
45 |
plusbut->setIcon(icon);
|
44 |
plusbut->setIcon(icon);
|
46 |
ui->tabs->setCornerWidget(plusbut, Qt::TopRightCorner);
|
45 |
ui->tabs->setCornerWidget(plusbut, Qt::TopRightCorner);
|
47 |
plusbut->setCursor(Qt::ArrowCursor);
|
46 |
plusbut->setCursor(Qt::ArrowCursor);
|
48 |
plusbut->setAutoRaise(true);
|
47 |
plusbut->setAutoRaise(true);
|
49 |
plusbut->setToolTip(tr("Add tab"));
|
48 |
plusbut->setToolTip(tr("Add tab"));
|
|
... |
|
... |
58 |
connect(ui->tabs, SIGNAL(currentChanged(int)),
|
57 |
connect(ui->tabs, SIGNAL(currentChanged(int)),
|
59 |
this, SLOT(onCurrentTabChanged(int)));
|
58 |
this, SLOT(onCurrentTabChanged(int)));
|
60 |
connect(ui->tabs, SIGNAL(tabCloseRequested(int)),
|
59 |
connect(ui->tabs, SIGNAL(tabCloseRequested(int)),
|
61 |
this, SLOT(closeTab(int)));
|
60 |
this, SLOT(closeTab(int)));
|
62 |
|
61 |
|
63 |
icon = QIcon(icon_path + "/cross.png");
|
62 |
icon = QIcon(Helper::getIconPath("cross.png"));
|
64 |
ui->closeSearchTB->setIcon(icon);
|
63 |
ui->closeSearchTB->setIcon(icon);
|
65 |
connect(ui->closeSearchTB, SIGNAL(clicked()),
|
64 |
connect(ui->closeSearchTB, SIGNAL(clicked()),
|
66 |
this, SLOT(closeSearchPanel()));
|
65 |
this, SLOT(closeSearchPanel()));
|
67 |
seq = QKeySequence("Ctrl+f");
|
66 |
seq = QKeySequence("Ctrl+f");
|
68 |
sc = new QShortcut(seq, this);
|
67 |
sc = new QShortcut(seq, this);
|