1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-31 02:01:19 +00:00

Some cleanups, fullscreen option also in context menu now.

This commit is contained in:
Filippo Scognamiglio 2014-04-17 13:56:13 +02:00
parent 115171e969
commit 475f6bde37
16 changed files with 30 additions and 32 deletions

View File

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
import QtQuick 2.1
import QtQuick 2.2
import QtQuick.Dialogs 1.1
Item {

View File

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
import QtQuick 2.1
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1

View File

@ -18,13 +18,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Window 2.1
import QtQuick.Layouts 1.0
import QtQuick.Layouts 1.1
import QtQuick.Dialogs 1.1
ApplicationWindow {
Window {
id: settings_window
title: qsTr("Settings")
width: 640

View File

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
import QtQuick 2.0
import QtQuick 2.2
import QtGraphicalEffects 1.0
ShaderEffect {

View File

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
import QtQuick 2.1
import QtQuick 2.2
Item{
property bool fullscreen: false

View File

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
import QtQuick 2.1
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1

View File

@ -1,4 +1,4 @@
import QtQuick 2.0
import QtQuick 2.2
Rectangle{
property size terminalSize

View File

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
import QtQuick 2.1
import QtQuick 2.2
import QtQuick.LocalStorage 2.0
Item {

View File

@ -18,9 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
import QtQuick 2.0
import QtQuick 2.2
import QtGraphicalEffects 1.0
import QtQuick.Controls 1.0
import QtQuick.Controls 1.1
import org.kde.konsole 0.1
@ -97,6 +97,8 @@ Item{
id: contextmenu
MenuItem{action: copyAction}
MenuItem{action: pasteAction}
MenuSeparator{}
MenuItem{action: fullscreenAction}
}
MouseArea{

View File

@ -1,6 +1,5 @@
import QtQuick 2.1
import QtQuick 2.2
import "utils"
import QtGraphicalEffects 1.0
TerminalFrame{
id: frame

View File

@ -1,4 +1,4 @@
import QtQuick 2.0
import QtQuick 2.2
import "utils"
TerminalFrame{

View File

@ -1,4 +1,4 @@
import QtQuick 2.0
import QtQuick 2.2
import "utils"
TerminalFrame{

View File

@ -1,4 +1,4 @@
import QtQuick 2.1
import QtQuick 2.2
ShaderEffect{
property variant source: framesource

View File

@ -1,4 +1,4 @@
import QtQuick 2.1
import QtQuick 2.2
ShaderEffect{
property variant source: framesource

View File

@ -1,4 +1,4 @@
import QtQuick 2.1
import QtQuick 2.2
Item{
id: framecontainer

View File

@ -18,9 +18,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
import QtQuick 2.1
import QtQuick.Window 2.0
import QtQuick.Controls 1.0
import QtQuick 2.2
import QtQuick.Window 2.1
import QtQuick.Controls 1.1
import QtGraphicalEffects 1.0
import org.kde.konsole 0.1
@ -39,6 +39,8 @@ ApplicationWindow{
text: qsTr("&Fullscreen")
shortcut: "Alt+F11"
onTriggered: shadersettings.fullscreen = !shadersettings.fullscreen;
checkable: true
checked: shadersettings.fullscreen
}
Action {
id: quitAction
@ -49,7 +51,7 @@ ApplicationWindow{
Action{
id: showsettingsAction
text: qsTr("&Settings")
onTriggered: settingswindowloader.active = true;
onTriggered: settingswindow.show();
}
Action{
id: copyAction
@ -168,13 +170,8 @@ ApplicationWindow{
terminal.loadKTerminal();
}
}
Loader{
id: settingswindowloader
active: false
sourceComponent: SettingsWindow{
id: settingswindow
visible: true
onClosing: settingswindowloader.active = false;
}
SettingsWindow{
id: settingswindow
visible: false
}
}