mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Some minor bugfixing
This commit is contained in:
@@ -23,7 +23,7 @@ namespace pdf
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Name of the library, together with version
|
// 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
|
// Structure file constants
|
||||||
static constexpr const char* PDF_END_OF_FILE_MARK = "%%EOF";
|
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
|
QT += core gui widgets winextras printsupport texttospeech network xml
|
||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
|
||||||
|
|
||||||
TARGET = PdfForQtViewer
|
TARGET = PdfForQtViewer
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
@@ -18,16 +27,8 @@ RC_ICONS = $$PWD/resources/app-icon.ico
|
|||||||
QMAKE_TARGET_DESCRIPTION = "PDF viewer for Qt"
|
QMAKE_TARGET_DESCRIPTION = "PDF viewer for Qt"
|
||||||
QMAKE_TARGET_COPYRIGHT = "(c) Jakub Melka 2018-2020"
|
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.
|
DEFINES += QT_DEPRECATED_WARNINGS
|
||||||
# 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
|
|
||||||
|
|
||||||
QMAKE_CXXFLAGS += /std:c++latest /utf-8
|
QMAKE_CXXFLAGS += /std:c++latest /utf-8
|
||||||
|
|
||||||
|
@@ -1600,7 +1600,7 @@ void PDFProgramController::updateTitle()
|
|||||||
{
|
{
|
||||||
title = m_fileInfo.fileName;
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user