Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/newftpgui.cpp
Show All 31 Lines | |||||
32 | #include <QGridLayout> | 32 | #include <QGridLayout> | ||
33 | #include <QHBoxLayout> | 33 | #include <QHBoxLayout> | ||
34 | #include <QPushButton> | 34 | #include <QPushButton> | ||
35 | #include <QSizePolicy> | 35 | #include <QSizePolicy> | ||
36 | 36 | | |||
37 | #include <KConfigCore/KConfigGroup> | 37 | #include <KConfigCore/KConfigGroup> | ||
38 | #include <KConfigCore/KSharedConfig> | 38 | #include <KConfigCore/KSharedConfig> | ||
39 | #include <KI18n/KLocalizedString> | 39 | #include <KI18n/KLocalizedString> | ||
40 | #include <KIconThemes/KIconLoader> | | |||
41 | #include <KIOCore/KProtocolInfo> | 40 | #include <KIOCore/KProtocolInfo> | ||
42 | 41 | | |||
43 | #include "../krglobal.h" | 42 | #include "../krglobal.h" | ||
43 | #include "../icon.h" | ||||
44 | 44 | | |||
45 | #define SIZE_MINIMUM QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed) | 45 | #define SIZE_MINIMUM QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed) | ||
46 | 46 | | |||
47 | const QStringList sProtocols = QStringList() | 47 | const QStringList sProtocols = QStringList() | ||
48 | << QStringLiteral("ftp") << QStringLiteral("ftps") | 48 | << QStringLiteral("ftp") << QStringLiteral("ftps") | ||
49 | << QStringLiteral("sftp") | 49 | << QStringLiteral("sftp") | ||
50 | << QStringLiteral("fish") << QStringLiteral("nfs") | 50 | << QStringLiteral("fish") << QStringLiteral("nfs") | ||
51 | << QStringLiteral("smb") << QStringLiteral("webdav") | 51 | << QStringLiteral("smb") << QStringLiteral("webdav") | ||
Show All 14 Lines | 61 | { | |||
66 | QVBoxLayout *mainLayout = new QVBoxLayout; | 66 | QVBoxLayout *mainLayout = new QVBoxLayout; | ||
67 | setLayout(mainLayout); | 67 | setLayout(mainLayout); | ||
68 | 68 | | |||
69 | QSizePolicy policy(QSizePolicy::Preferred, QSizePolicy::Preferred); | 69 | QSizePolicy policy(QSizePolicy::Preferred, QSizePolicy::Preferred); | ||
70 | policy.setHeightForWidth(sizePolicy().hasHeightForWidth()); | 70 | policy.setHeightForWidth(sizePolicy().hasHeightForWidth()); | ||
71 | setSizePolicy(policy); | 71 | setSizePolicy(policy); | ||
72 | 72 | | |||
73 | iconLabel = new QLabel(this); | 73 | iconLabel = new QLabel(this); | ||
74 | iconLabel->setPixmap(krLoader->loadIcon("network-wired", KIconLoader::Desktop, 32)); | 74 | iconLabel->setPixmap(Icon("network-wired").pixmap(32)); | ||
75 | iconLabel->setSizePolicy(SIZE_MINIMUM); | 75 | iconLabel->setSizePolicy(SIZE_MINIMUM); | ||
76 | 76 | | |||
77 | aboutLabel = new QLabel(i18n("About to connect to..."), this); | 77 | aboutLabel = new QLabel(i18n("About to connect to..."), this); | ||
78 | QFont font(aboutLabel->font()); | 78 | QFont font(aboutLabel->font()); | ||
79 | font.setBold(true); | 79 | font.setBold(true); | ||
80 | aboutLabel->setFont(font); | 80 | aboutLabel->setFont(font); | ||
81 | 81 | | |||
82 | protocolLabel = new QLabel(i18n("Protocol:"), this); | 82 | protocolLabel = new QLabel(i18n("Protocol:"), this); | ||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |