diff --git a/src/contents/ui/OptionsOverview.qml b/src/contents/ui/OptionsOverview.qml index 786f6b0..635c045 100644 --- a/src/contents/ui/OptionsOverview.qml +++ b/src/contents/ui/OptionsOverview.qml @@ -1,156 +1,156 @@ /*************************************************************************** * * * Copyright 2014-2015 Sebastian Kügler * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * * * ***************************************************************************/ import QtQuick 2.3 import QtQuick.Layouts 1.0 import org.kde.kirigami 2.0 as Kirigami ColumnLayout { id: optionsOverview property int buttonSize: Kirigami.Units.gridUnit * 2 RowLayout { id: layout anchors.fill: parent height: buttonSize spacing: 0 // anchors.leftMargin: Kirigami.Units.gridUnit / 2 // anchors.rightMargin: Kirigami.Units.gridUnit / 2 //visible: navigationShown //spacing: Kirigami.Units.smallSpacing OptionButton { id: backButton enabled: currentWebView.canGoBack iconSource: "go-previous" onClicked: { options.state = "hidden"; currentWebView.goBack() } } OptionButton { id: forwardButton enabled: currentWebView.canGoForward iconSource: "go-next" onClicked: { options.state = "hidden"; currentWebView.goForward() } } OptionButton { id: reloadButton iconSource: currentWebView.loading ? "process-stop" : "view-refresh" onClicked: { options.state = "hidden"; currentWebView.loading ? currentWebView.stop() : currentWebView.reload() } } OptionButton { id: bookmarkButton iconSource: "bookmarks" onClicked: { print("Adding bookmark"); var request = new Object;// FIXME request.url = currentWebView.url; request.title = currentWebView.title; request.iconSource = currentWebView.iconSource; request.bookmarked = true; browserManager.addBookmark(request); options.state = "hidden" } } } Item { Layout.preferredHeight: Kirigami.Units.smallSpacing Layout.fillWidth: true } OptionButton { iconSource: "tab-duplicate" Layout.fillWidth: true Layout.preferredHeight: buttonSize onClicked: { contentView.state = "tabs" options.state = "hidden" } - checked: contentView.state == "tabs" + //checked: contentView.state == "tabs" text: i18n("Tabs") } OptionButton { iconSource: "bookmarks" Layout.fillWidth: true Layout.preferredHeight: buttonSize onClicked: { contentView.state = "bookmarks" options.state = "hidden" } //checked: contentView.state == "bookmarks" text: i18n("Bookmarks") } OptionButton { iconSource: "view-history" Layout.fillWidth: true Layout.preferredHeight: buttonSize onClicked: { contentView.state = "history" options.state = "hidden" } //checked: contentView.state == "bookmarks" text: i18n("History") } OptionButton { iconSource: "configure" Layout.fillWidth: true Layout.preferredHeight: buttonSize text: i18n("Settings") - checked: contentView.state == "settings" + //checked: contentView.state == "settings" onClicked: { contentView.state = "settings" options.state = "hidden" } } }