Changeset 14561


Ignore:
Timestamp:
Sep 1, 2015, 8:19:26 PM (7 years ago)
Author:
mikedld
Message:

Remove context help button from dialogs on Windows

We don't currently (if ever) provide context help, so the button is
useless. Moreover, on Windows 10 it's even larger than before and
sometimes title text doesn't fit because of it.

Location:
trunk/qt
Files:
1 added
20 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/AboutDialog.cc

    r14553 r14561  
    2121
    2222AboutDialog::AboutDialog (QWidget * parent):
    23   QDialog (parent, Qt::Dialog),
     23  BaseDialog (parent),
    2424  myLicenseDialog ()
    2525{
  • trunk/qt/AboutDialog.h

    r14553 r14561  
    1111#define QTR_ABOUT_DIALOG_H
    1212
    13 #include <QDialog>
    1413#include <QPointer>
     14
     15#include "BaseDialog.h"
    1516
    1617#include "ui_AboutDialog.h"
     
    1819class LicenseDialog;
    1920
    20 class AboutDialog: public QDialog
     21class AboutDialog: public BaseDialog
    2122{
    2223    Q_OBJECT
  • trunk/qt/CMakeLists.txt

    r14558 r14561  
    7474    AddData.h
    7575    Application.h
     76    BaseDialog.h
    7677    ColumnResizer.h
    7778    CustomVariantType.h
  • trunk/qt/DetailsDialog.cc

    r14553 r14561  
    174174}
    175175
    176 DetailsDialog::DetailsDialog (Session       & session,
    177                   Prefs         & prefs,
    178                   const TorrentModel& model,
    179                   QWidget       * parent):
    180   QDialog (parent, Qt::Dialog),
     176DetailsDialog::DetailsDialog (Session            & session,
     177                              Prefs              & prefs,
     178                              const TorrentModel & model,
     179                              QWidget            * parent):
     180  BaseDialog (parent),
    181181  mySession (session),
    182182  myPrefs (prefs),
  • trunk/qt/DetailsDialog.h

    r14539 r14561  
    1111#define QTR_DETAILS_DIALOG_H
    1212
    13 #include <QDialog>
    1413#include <QString>
    1514#include <QMap>
    1615#include <QSet>
    1716#include <QTimer>
     17
     18#include "BaseDialog.h"
    1819
    1920#include "ui_DetailsDialog.h"
     
    2930class TrackerModelFilter;
    3031
    31 class DetailsDialog: public QDialog
     32class DetailsDialog: public BaseDialog
    3233{
    3334    Q_OBJECT
  • trunk/qt/LicenseDialog.cc

    r14553 r14561  
    1111
    1212LicenseDialog::LicenseDialog (QWidget * parent):
    13   QDialog (parent, Qt::Dialog)
     13  BaseDialog (parent)
    1414{
    1515  ui.setupUi (this);
  • trunk/qt/LicenseDialog.h

    r14553 r14561  
    1111#define QTR_LICENSE_DIALOG_H
    1212
    13 #include <QDialog>
     13#include "BaseDialog.h"
    1414
    1515#include "ui_LicenseDialog.h"
    1616
    17 class LicenseDialog: public QDialog
     17class LicenseDialog: public BaseDialog
    1818{
    1919    Q_OBJECT
  • trunk/qt/MakeDialog.cc

    r14537 r14561  
    2828namespace
    2929{
    30   class MakeProgressDialog: public QDialog
     30  class MakeProgressDialog: public BaseDialog
    3131  {
    3232      Q_OBJECT
     
    4848
    4949MakeProgressDialog::MakeProgressDialog (Session& session, tr_metainfo_builder& builder, QWidget * parent):
    50   QDialog (parent),
     50  BaseDialog (parent),
    5151  mySession (session),
    5252  myBuilder (builder)
     
    216216
    217217MakeDialog::MakeDialog (Session& session, QWidget * parent):
    218   QDialog (parent, Qt::Dialog),
     218  BaseDialog (parent),
    219219  mySession (session),
    220220  myBuilder (nullptr, &tr_metaInfoBuilderFree)
  • trunk/qt/MakeDialog.h

    r14539 r14561  
    1313#include <memory>
    1414
    15 #include <QDialog>
     15#include "BaseDialog.h"
    1616
    1717#include "ui_MakeDialog.h"
     
    2626}
    2727
    28 class MakeDialog: public QDialog
     28class MakeDialog: public BaseDialog
    2929{
    3030    Q_OBJECT
  • trunk/qt/OptionsDialog.cc

    r14537 r14561  
    2828
    2929OptionsDialog::OptionsDialog (Session& session, const Prefs& prefs, const AddData& addme, QWidget * parent):
    30   QDialog (parent, Qt::Dialog),
     30  BaseDialog (parent),
    3131  mySession (session),
    3232  myAdd (addme),
  • trunk/qt/OptionsDialog.h

    r14539 r14561  
    1212
    1313#include <QCryptographicHash>
    14 #include <QDialog>
    1514#include <QDir>
    1615#include <QFile>
     
    2120
    2221#include "AddData.h" // AddData
     22#include "BaseDialog.h"
    2323#include "Torrent.h" // FileList
    2424
     
    3333}
    3434
    35 class OptionsDialog: public QDialog
     35class OptionsDialog: public BaseDialog
    3636{
    3737    Q_OBJECT
  • trunk/qt/PrefsDialog.cc

    r14554 r14561  
    536536
    537537PrefsDialog::PrefsDialog (Session& session, Prefs& prefs, QWidget * parent):
    538   QDialog (parent),
     538  BaseDialog (parent),
    539539  mySession (session),
    540540  myPrefs (prefs),
  • trunk/qt/PrefsDialog.h

    r14539 r14561  
    1111#define QTR_PREFS_DIALOG_H
    1212
    13 #include <QDialog>
    1413#include <QMap>
    1514#include <QSet>
    1615
     16#include "BaseDialog.h"
    1717#include "Prefs.h"
     18
    1819#include "ui_PrefsDialog.h"
    1920
     
    2526class Session;
    2627
    27 class PrefsDialog: public QDialog
     28class PrefsDialog: public BaseDialog
    2829{
    2930    Q_OBJECT
  • trunk/qt/RelocateDialog.cc

    r14537 r14561  
    3434                                const QSet<int>    & ids,
    3535                                QWidget            * parent):
    36   QDialog (parent),
     36  BaseDialog (parent),
    3737  mySession (session),
    3838  myIds (ids)
  • trunk/qt/RelocateDialog.h

    r14539 r14561  
    1111#define QTR_RELOCATE_DIALOG_H
    1212
    13 #include <QDialog>
    1413#include <QSet>
     14
     15#include "BaseDialog.h"
    1516
    1617#include "ui_RelocateDialog.h"
     
    1920class TorrentModel;
    2021
    21 class RelocateDialog: public QDialog
     22class RelocateDialog: public BaseDialog
    2223{
    2324    Q_OBJECT
  • trunk/qt/SessionDialog.cc

    r14537 r14561  
    4747
    4848SessionDialog::SessionDialog (Session& session, Prefs& prefs, QWidget * parent):
    49   QDialog (parent),
     49  BaseDialog (parent),
    5050  mySession (session),
    5151  myPrefs (prefs)
  • trunk/qt/SessionDialog.h

    r14539 r14561  
    1111#define QTR_SESSION_DIALOG_H
    1212
    13 #include <QDialog>
    1413#include <QWidgetList>
     14
     15#include "BaseDialog.h"
    1516
    1617#include "ui_SessionDialog.h"
     
    1920class Session;
    2021
    21 class SessionDialog: public QDialog
     22class SessionDialog: public BaseDialog
    2223{
    2324    Q_OBJECT
  • trunk/qt/StatsDialog.cc

    r14537 r14561  
    2121
    2222StatsDialog::StatsDialog (Session& session, QWidget * parent):
    23   QDialog (parent, Qt::Dialog),
     23  BaseDialog (parent),
    2424  mySession (session),
    2525  myTimer (new QTimer (this))
  • trunk/qt/StatsDialog.h

    r14539 r14561  
    1111#define QTR_STATS_DIALOG_H
    1212
    13 #include <QDialog>
     13#include "BaseDialog.h"
    1414
    1515#include "ui_StatsDialog.h"
     
    1919class Session;
    2020
    21 class StatsDialog: public QDialog
     21class StatsDialog: public BaseDialog
    2222{
    2323    Q_OBJECT
  • trunk/qt/qtr.pro

    r14558 r14561  
    112112           WatchDir.cc
    113113HEADERS += $$replace(SOURCES, .cc, .h)
    114 HEADERS += CustomVariantType.h Speed.h
     114HEADERS += BaseDialog.h CustomVariantType.h Speed.h
    115115
    116116win32:RC_FILE = qtr.rc
Note: See TracChangeset for help on using the changeset viewer.