From f68cf0d4ae6837b5cd95a43ab482b1f63c1ca54e Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Tue, 1 Jan 2019 08:27:51 -0800 Subject: added Info.plist (fixes #47) --- Info.plist | 26 ++++++++++++++++++++++++++ src/gui/previewwindow.cpp | 1 + tikzit.pro | 4 ++++ 3 files changed, 31 insertions(+) create mode 100644 Info.plist diff --git a/Info.plist b/Info.plist new file mode 100644 index 0000000..829cd67 --- /dev/null +++ b/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleExecutable + tikzit + CFBundleIconFile + tikzit.icns + CFBundleIdentifier + io.github.tikzit + CFBundlePackageType + APPL + CFBundleSignature + ???? + LSMinimumSystemVersion + 10.12 + NSPrincipalClass + NSApplication + NSSupportsAutomaticGraphicsSwitching + + CFBundleVersion + @FULL_VERSION@ + CFBundleShortVersionString + @FULL_VERSION@ + + diff --git a/src/gui/previewwindow.cpp b/src/gui/previewwindow.cpp index d9d22c2..c27c1be 100644 --- a/src/gui/previewwindow.cpp +++ b/src/gui/previewwindow.cpp @@ -37,6 +37,7 @@ PreviewWindow::PreviewWindow(QWidget *parent) : _loader = new QLabel(ui->tabWidget->tabBar()); _loader->setMinimumSize(QSize(16,16)); _loader->setMaximumSize(QSize(16,16)); + _loader->setAutoFillBackground(false); ui->tabWidget->tabBar()->setTabButton(1, QTabBar::RightSide, _loader); connect(ui->tabWidget, SIGNAL(currentChanged(int)), diff --git a/tikzit.pro b/tikzit.pro index d8abd30..8b15534 100644 --- a/tikzit.pro +++ b/tikzit.pro @@ -2,6 +2,8 @@ QT += core gui widgets network svg +VERSION = 2.1 + test { CONFIG += testcase } @@ -25,6 +27,8 @@ win32:RC_ICONS += images/tikzdoc.ico macx:ICON = images/tikzit.icns # linux-g++:QMAKE_CXXFLAGS += -Wsuggest-override +QMAKE_INFO_PLIST = Info.plist + # Qt 5.8 and above drop support for Mountain Lion contains(QT_VERSION, ^5\\.[5-7].*) { macx:QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8 -- cgit v1.2.3