Commit 067b5cc6 authored by Laurent Montel's avatar Laurent Montel 😁

Warning--

parent ab57b3c6
......@@ -31,6 +31,9 @@ include(FeatureSummary)
add_definitions( -DQT_NO_CAST_FROM_ASCII )
add_definitions( -DQT_NO_CAST_TO_ASCII )
add_definitions(-DQT_USE_FAST_OPERATOR_PLUS)
add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DQT_USE_QSTRINGBUILDER)
ADD_SUBDIRECTORY(doc)
ADD_SUBDIRECTORY(data)
......
......@@ -36,7 +36,7 @@ class SettingsUI : public QWidget, public Ui::SettingsWidget
{
public:
SettingsUI(QWidget *parent = 0)
explicit SettingsUI(QWidget *parent = nullptr)
: QWidget( parent )
{
setupUi( this );
......
......@@ -36,7 +36,7 @@ class TeaListModel : public QAbstractTableModel
* @param teas the initial list of teas to manage.
* @param parent the parent object.
*/
explicit TeaListModel(const QList<Tea> &teas, QObject *parent = 0);
explicit TeaListModel(const QList<Tea> &teas, QObject *parent = nullptr);
/**
* Returns the index of the item in the model specified by the given row, column and parent index.
......
......@@ -32,7 +32,7 @@
class TimeEditUI : public QWidget, public Ui::TimeEditWidget
{
public:
TimeEditUI(QWidget *parent = 0)
explicit TimeEditUI(QWidget *parent = nullptr)
: QWidget( parent )
{
setupUi( this );
......
......@@ -38,11 +38,11 @@ class TimeEditDialog : public QDialog
{
public:
explicit TimeEditDialog(TopLevel *toplevel);
~TimeEditDialog();
~TimeEditDialog() override;
private:
void checkOkButtonState();
void accept();
void accept() override;
TimeEditUI *ui;
TopLevel *m_toplevel;
......
......@@ -95,7 +95,7 @@ TopLevel::TopLevel(const KAboutData *aboutData, const QString &icon, QWidget *pa
action->setText(i18n( "&Anonymous..." ) );
connect(action, &QAction::triggered, this, &TopLevel::showTimeEditDialog);
m_helpMenu = new KHelpMenu( 0, *aboutData, false );
m_helpMenu = new KHelpMenu( nullptr, *aboutData, false );
loadTeaMenuItems();
contextMenu()->addSeparator();
......
......@@ -40,7 +40,7 @@ class KPassivePopup;
class TopLevel : public QSystemTrayIcon
{
public:
explicit TopLevel(const KAboutData *aboutData, const QString &icon = QLatin1String("kteatime"), QWidget *parent = 0);
explicit TopLevel(const KAboutData *aboutData, const QString &icon = QLatin1String("kteatime"), QWidget *parent = nullptr);
~TopLevel();
void setTeaList(const QList<Tea> &tealist);
void runTea(const Tea &tea);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment