diff options
-rw-r--r-- | src/application.cpp | 7 | ||||
-rw-r--r-- | src/webappcreation.ui | 19 |
2 files changed, 21 insertions, 5 deletions
diff --git a/src/application.cpp b/src/application.cpp index ef6c2085..02e13c72 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -68,6 +68,7 @@ #include <KGlobal> #include <KCharsets> #include <KPushButton> +#include <KMimeType> // Qt Includes #include <QVBoxLayout> @@ -805,6 +806,7 @@ void Application::createWebAppShortcut() dialog->setCaption(i18nc("@title:window", "Create Application Shortcut")); dialog->setButtons(KDialog::Ok | KDialog::Cancel); dialog->button(KDialog::Ok)->setText(i18n("Create")); + dialog->setMinimumSize(400,50); Ui::webAppCreation wAppWidget; QWidget widget; @@ -833,13 +835,13 @@ void Application::createWebAppShortcut() + QL1S("Icon=") + iconPath + QL1S("\n") + QL1S("Exec=kwebapp ") + u.url() + QL1S("\n") + QL1S("Type=Application\n") - + QL1S("Categories=Application;Network;WebBrowser\n") + + QL1S("Categories=Application;Network\n") ; if (ReKonfig::createDesktopAppShortcut()) { QString desktop = KGlobalSettings::desktopPath(); - QFile wAppFile(desktop + QL1C('/') + title + QL1S(".desktop")); + QFile wAppFile(desktop + QL1C('/') + title); if (!wAppFile.open(QIODevice::WriteOnly | QIODevice::Text)) { @@ -851,6 +853,7 @@ void Application::createWebAppShortcut() out.setCodec("UTF-8"); out << shortcutString; + wAppFile.setPermissions(QFile::ReadUser|QFile::WriteUser|QFile::ExeUser|QFile::ReadGroup|QFile::ReadOther); wAppFile.close(); } diff --git a/src/webappcreation.ui b/src/webappcreation.ui index 038326a8..2fc242b0 100644 --- a/src/webappcreation.ui +++ b/src/webappcreation.ui @@ -6,8 +6,8 @@ <rect> <x>0</x> <y>0</y> - <width>445</width> - <height>151</height> + <width>461</width> + <height>196</height> </rect> </property> <layout class="QVBoxLayout" name="verticalLayout"> @@ -42,6 +42,19 @@ </layout> </item> <item> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> <widget class="QLabel" name="label"> <property name="text"> <string>Create Application shortcuts in:</string> @@ -58,7 +71,7 @@ <item> <widget class="QCheckBox" name="kcfg_createMenuAppShortcut"> <property name="text"> - <string>Application MenĂ¹</string> + <string>Application Menu</string> </property> </widget> </item> |