Verified Commit e5cec480 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

webapp: Remove unused code

parent bef7a520
......@@ -34,20 +34,9 @@ Kirigami.ApplicationWindow {
id: webBrowser
title: webView.title
// Pointer to the currently active list of tabs.
//
// As there are private and normal tabs, switch between
// them according to the current mode.
property ListWebView tabs: rootPage.privateMode ? privateTabs : regularTabs
property WebView currentWebView: webView
// Pointer to browser settings
property Settings settings: settings
// Used to determine if the window is in landscape mode
property bool landscape: width > height
property int borderWidth: Math.round(Kirigami.Units.gridUnit / 18);
property color borderColor: Kirigami.Theme.highlightColor;
......@@ -68,12 +57,6 @@ Kirigami.ApplicationWindow {
Kirigami.ColumnView.pinned: true
Kirigami.ColumnView.preventStealing: true
// Required to enforce active tab reload
// on start. As a result, mixed isMobile
// tabs will work correctly
property bool initialized: false
//FIXME: WebView assumes a multi tab ui, will probably need own implementation
WebAppView {
id: webView
anchors.fill: parent
......@@ -128,9 +111,6 @@ Kirigami.ApplicationWindow {
Loader {
id: sheetLoader
}
// dealing with hiding and showing navigation bar
property point oldScrollPosition: Qt.point(0, 0)
}
Connections {
......@@ -155,8 +135,6 @@ Kirigami.ApplicationWindow {
id: settings
}
Component.onCompleted: rootPage.initialized = true
function popSubPages() {
while (webBrowser.pageStack.depth > 1)
webBrowser.pageStack.pop();
......
......@@ -57,7 +57,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
// Command line parser
QCommandLineParser parser;
parser.addPositionalArgument("url", i18n("URL to open"), "[url]");
parser.addPositionalArgument("desktopfile", i18n("desktop file to open"), "[file]");
parser.addHelpOption();
parser.process(app);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment