Skip to content

Commit

Permalink
clean up build warnings and deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Mar 1, 2024
1 parent 7201375 commit 6013e8b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CMakeLists5.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ endif()
find_package(Qt5 ${QT5_NEEDED} COMPONENTS Core Network WebEngine WebEngineWidgets Svg Widgets PrintSupport Xml LinguistTools)
set(CMAKE_AUTOMOC ON)

if (CMAKE_VERSION VERSION_GREATER "3.27.9")
cmake_policy(SET CMP0153 OLD)
endif()

set( SOURCE_FILES
main.cpp
MainApplication.cpp
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ set(CMAKE_CXX_EXTENSIONS OFF)

#############################################################################

if (CMAKE_VERSION VERSION_GREATER "3.27.9")
cmake_policy(SET CMP0153 OLD)
endif()

if( UNIX AND NOT APPLE )
# Qt6 packages minimum version 6.2 for Linux
set(QT6_NEEDED 6.2)
Expand Down
2 changes: 1 addition & 1 deletion SelectFiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ void SelectFiles::resizeEvent(QResizeEvent *event)
void SelectFiles::SetPreviewImage()
{
m_PreviewReady = false;
QPixmap(pixmap);
QPixmap pixmap;
QString details = "";
QStandardItem *item = GetLastSelectedImageItem();

Expand Down
2 changes: 1 addition & 1 deletion UIDictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ QString UIDictionary::GetDictionaryPath()

// finally look inside the installed Qt directories
#ifndef Q_OS_MAC
dict_path = QLibraryInfo::location(QLibraryInfo::DataPath) + "/qtwebengine_dictionaries";
dict_path = QLibraryInfo::path(QLibraryInfo::DataPath) + "/qtwebengine_dictionaries";
#else
dict_path = QCoreApplication::applicationDirPath() +
"/../Frameworks/QtWebEngineCore.framework/Resources/qtwebengine_dictionaries";
Expand Down
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ int main(int argc, char *argv[])

// initialize our QWebEngineProfiles and URL Interceptor
WebProfileMgr* profile_mgr = WebProfileMgr::instance();
Q_UNUSED(profile_mgr);

QStringList arguments = QCoreApplication::arguments();

Expand Down

0 comments on commit 6013e8b

Please sign in to comment.