From 784ebca212b331929f221f8c87c94ed90d42aeaa Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Wed, 4 May 2016 16:40:04 +0300 Subject: [PATCH] Polish on legacy removal changes --- fingerterm.pro | 18 ++++++++---------- main.cpp | 4 ---- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/fingerterm.pro b/fingerterm.pro index 6897fb7..7de81ab 100644 --- a/fingerterm.pro +++ b/fingerterm.pro @@ -1,24 +1,21 @@ -QT = core gui qml quick dbus +QT = core gui qml quick dbus CONFIG += link_pkgconfig enable-feedback { - QT += feedback - DEFINES += HAVE_FEEDBACK + QT += feedback + DEFINES += HAVE_FEEDBACK } enable-nemonotifications { - PKGCONFIG += nemonotifications-qt5 + PKGCONFIG += nemonotifications-qt5 } isEmpty(DEFAULT_FONT) { - DEFINES += DEFAULT_FONTFAMILY=\\\"monospace\\\" + DEFAULT_FONT = monospace } -defined(DEFAULT_FONT) -{ - DEFINES += DEFAULT_FONTFAMILY=\\\"$$DEFAULT_FONT\\\" -} +DEFINES += DEFAULT_FONTFAMILY=\\\"$$DEFAULT_FONT\\\" TEMPLATE = app TARGET = fingerterm @@ -34,7 +31,8 @@ HEADERS += \ version.h \ util.h \ keyloader.h \ - mainwindow.h + mainwindow.h + SOURCES += \ main.cpp \ terminal.cpp \ diff --git a/main.cpp b/main.cpp index cf50088..a79b8a0 100644 --- a/main.cpp +++ b/main.cpp @@ -166,10 +166,6 @@ int main(int argc, char *argv[]) } else view.show(); -#ifdef RESIZE_ROOT_QML_TO_VIEW - view.setResizeMode(QQuickView::SizeRootObjectToView); -#endif - PtyIFace ptyiface(pid, socketM, &term, settings->value("terminal/charset").toString());