Skip to content

Commit

Permalink
Remove minimization button
Browse files Browse the repository at this point in the history
Hardly see any use, operating system should offer method for
minimizing applications.
  • Loading branch information
pvuorela committed May 4, 2016
1 parent 1eac148 commit 2dbcaed
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
5 changes: 0 additions & 5 deletions mainwindow.cpp
Expand Up @@ -45,8 +45,3 @@ void MainWindow::focusOutEvent(QFocusEvent *event)
QQuickView::focusOutEvent(event);
emit focusChanged(false);
}

void MainWindow::minimize()
{
setWindowState(Qt::WindowMinimized);
}
2 changes: 0 additions & 2 deletions mainwindow.h
Expand Up @@ -29,8 +29,6 @@ class MainWindow : public QQuickView
explicit MainWindow();
virtual ~MainWindow();

void minimize();

protected:
virtual void focusInEvent(QFocusEvent *event);
virtual void focusOutEvent(QFocusEvent *event);
Expand Down
8 changes: 0 additions & 8 deletions qml/MenuFingerterm.qml
Expand Up @@ -392,14 +392,6 @@ Rectangle {
aboutDialog.state = "visible"
}
}
Button {
visible: true;
text: "Minimize"
onClicked: {
hideMenu();
util.windowMinimize();
}
}
Button {
text: "Quit"
onClicked: {
Expand Down
5 changes: 0 additions & 5 deletions util.cpp
Expand Up @@ -69,11 +69,6 @@ QString Util::currentWindowTitle()
return iCurrentWinTitle;
}

void Util::windowMinimize()
{
iWindow->minimize();
}

void Util::openNewWindow()
{
QProcess::startDetached("/usr/bin/fingerterm");
Expand Down
1 change: 0 additions & 1 deletion util.h
Expand Up @@ -39,7 +39,6 @@ class Util : public QObject
void setTerm(Terminal* term) { iTerm = term; }
void setRenderer(TextRender* r) { iRenderer = r; }

Q_INVOKABLE void windowMinimize();
Q_INVOKABLE void openNewWindow();

Q_INVOKABLE QString versionString();
Expand Down

0 comments on commit 2dbcaed

Please sign in to comment.