mirror of
https://github.com/transmission/transmission
synced 2025-01-30 19:03:04 +00:00
5c8f7d410c
* refactor: use QMultiMap in DetailsDialog::onRemoveTrackerClicked() * refactor: use 'QWindowFlags = {}' in BaseDialog Fixes deprecated use: > ../qt/BaseDialog.h:16:59: warning: 'QFlags' is deprecated: Use default constructor instead [-Wdeprecated-declarations] * refactor: remove empty string in string_view ctor Fixes readability-redundant-string-init warning: > ../qt/Prefs.cc:379:20: error: redundant string initialization [readability-redundant-string-init,-warnings-as-errors] > auto constexpr SessionUsername = std::string_view { "" }; > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21 lines
434 B
C++
21 lines
434 B
C++
/*
|
|
* This file Copyright (C) 2015 Mnemosyne LLC
|
|
*
|
|
* It may be used under the GNU GPL versions 2 or 3
|
|
* or any future license endorsed by Mnemosyne LLC.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
class BaseDialog : public QDialog
|
|
{
|
|
public:
|
|
BaseDialog(QWidget* parent = nullptr, Qt::WindowFlags flags = {}) :
|
|
QDialog(parent, flags)
|
|
{
|
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
|
}
|
|
};
|