mirror of https://github.com/JakubMelka/PDF4QT.git
Some minor bugfixing
This commit is contained in:
parent
6f24be7164
commit
6811820e1a
|
@ -23,7 +23,7 @@ namespace pdf
|
|||
{
|
||||
|
||||
// Name of the library, together with version
|
||||
static constexpr const char* PDF_LIBRARY_NAME = "PdfForQt 1.0.0";
|
||||
static constexpr const char* PDF_LIBRARY_NAME = "Pdf4Qt 1.0.0";
|
||||
|
||||
// Structure file constants
|
||||
static constexpr const char* PDF_END_OF_FILE_MARK = "%%EOF";
|
||||
|
|
|
@ -1,12 +1,21 @@
|
|||
#-------------------------------------------------
|
||||
# Copyright (C) 2018-2020 Jakub Melka
|
||||
#
|
||||
# Project created by QtCreator 2018-11-18T16:50:12
|
||||
# This file is part of PdfForQt.
|
||||
#
|
||||
#-------------------------------------------------
|
||||
# PdfForQt is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# PdfForQt 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 Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with PDFForQt. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
QT += core gui winextras printsupport texttospeech network xml
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
QT += core gui widgets winextras printsupport texttospeech network xml
|
||||
|
||||
TARGET = PdfForQtViewer
|
||||
TEMPLATE = app
|
||||
|
@ -18,16 +27,8 @@ RC_ICONS = $$PWD/resources/app-icon.ico
|
|||
QMAKE_TARGET_DESCRIPTION = "PDF viewer for Qt"
|
||||
QMAKE_TARGET_COPYRIGHT = "(c) Jakub Melka 2018-2020"
|
||||
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
# any feature of Qt which has been marked as deprecated (the exact warnings
|
||||
# depend on your compiler). Please consult the documentation of the
|
||||
# deprecated API in order to know how to port your code away from it.
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
# You can also make your code fail to compile if you use deprecated APIs.
|
||||
# In order to do so, uncomment the following line.
|
||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
QMAKE_CXXFLAGS += /std:c++latest /utf-8
|
||||
|
||||
|
|
|
@ -1600,7 +1600,7 @@ void PDFProgramController::updateTitle()
|
|||
{
|
||||
title = m_fileInfo.fileName;
|
||||
}
|
||||
m_mainWindow->setWindowTitle(tr("%1 - %2").arg(m_fileInfo.fileName, QApplication::applicationDisplayName()));
|
||||
m_mainWindow->setWindowTitle(tr("%1 - %2").arg(title, QApplication::applicationDisplayName()));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue