Changeset View
Changeset View
Standalone View
Standalone View
krusader/MountMan/kmountmangui.cpp
Show All 16 Lines | |||||
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 | 22 | | |||
23 | #include "kmountmangui.h" | 23 | #include "kmountmangui.h" | ||
24 | #include "../krglobal.h" | 24 | #include "../krglobal.h" | ||
25 | #include "../icon.h" | ||||
25 | #include "../Dialogs/krspecialwidgets.h" | 26 | #include "../Dialogs/krspecialwidgets.h" | ||
26 | #include "../kicons.h" | | |||
27 | #include "../defaults.h" | 27 | #include "../defaults.h" | ||
28 | #include "../FileSystem/filesystem.h" | 28 | #include "../FileSystem/filesystem.h" | ||
29 | 29 | | |||
30 | // QtCore | 30 | // QtCore | ||
31 | #include <QCryptographicHash> | 31 | #include <QCryptographicHash> | ||
32 | #include <QList> | 32 | #include <QList> | ||
33 | #include <QFileInfo> | 33 | #include <QFileInfo> | ||
34 | // QtGui | 34 | // QtGui | ||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 70 | { | |||
78 | connect(watcher, SIGNAL(timeout()), this, SLOT(checkMountChange())); | 78 | connect(watcher, SIGNAL(timeout()), this, SLOT(checkMountChange())); | ||
79 | 79 | | |||
80 | mainLayout->addLayout(createMainPage()); | 80 | mainLayout->addLayout(createMainPage()); | ||
81 | 81 | | |||
82 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close); | 82 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close); | ||
83 | mainLayout->addWidget(buttonBox); | 83 | mainLayout->addWidget(buttonBox); | ||
84 | 84 | | |||
85 | ejectButton = new QPushButton(i18n("&Eject")); | 85 | ejectButton = new QPushButton(i18n("&Eject")); | ||
86 | ejectButton->setIcon(QIcon::fromTheme(QStringLiteral("media-eject"))); | 86 | ejectButton->setIcon(Icon(QStringLiteral("media-eject"))); | ||
87 | ejectButton->setEnabled(false); | 87 | ejectButton->setEnabled(false); | ||
88 | buttonBox->addButton(ejectButton, QDialogButtonBox::ActionRole); | 88 | buttonBox->addButton(ejectButton, QDialogButtonBox::ActionRole); | ||
89 | 89 | | |||
90 | mountButton = new QPushButton(i18n("&Unmount")); | 90 | mountButton = new QPushButton(i18n("&Unmount")); | ||
91 | mountButton->setEnabled(false); | 91 | mountButton->setEnabled(false); | ||
92 | buttonBox->addButton(mountButton, QDialogButtonBox::ActionRole); | 92 | buttonBox->addButton(mountButton, QDialogButtonBox::ActionRole); | ||
93 | 93 | | |||
94 | // connections | 94 | // connections | ||
▲ Show 20 Lines • Show All 437 Lines • Show Last 20 Lines |