zeit: remove BaseEditDialog

This commit is contained in:
blaze 2020-11-07 11:51:01 +03:00
parent 7d61ae0391
commit 6d237535c8
No known key found for this signature in database
GPG Key ID: C4996C546950EAE4
3 changed files with 0 additions and 74 deletions

View File

@ -5,7 +5,6 @@ set(zeit_SRCS
aboutdialog.cpp
alarmdialog.cpp
basedialog.cpp
baseeditdialog.cpp
commanddialog.cpp
commands.cpp
main.cpp

View File

@ -1,36 +0,0 @@
/* ========================================================================
* Copyright (C) 2015-2020 Blaze <blaze@vivaldi.net>
*
* This file is part of Zeit.
*
* Zeit is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Zeit 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Zeit. If not, see <http://www.gnu.org/licenses/>.
* ======================================================================== */
#include <QLabel>
#include "baseeditdialog.h"
BaseEditDialog::BaseEditDialog(QWidget *parent) : BaseDialog(parent)
{
}
void BaseEditDialog::showError(const QString& errorMsg) {
if(!errorLabel)
return;
errorLabel->setVisible(true);
errorLabel->setText(QStringLiteral("<b>") + errorMsg
+ QStringLiteral("</b>"));
}

View File

@ -1,37 +0,0 @@
/* ========================================================================
* Copyright (C) 2015-2020 Blaze <blaze@vivaldi.net>
*
* This file is part of Zeit.
*
* Zeit is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Zeit 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Zeit. If not, see <http://www.gnu.org/licenses/>.
* ======================================================================== */
#include "basedialog.h"
#ifndef BASEEDITDIALOG_H
#define BASEEDITDIALOG_H
class QLabel;
class BaseEditDialog : public BaseDialog
{
protected:
QLabel* errorLabel = nullptr;
void showError(const QString& errorMsg);
public:
explicit BaseEditDialog(QWidget *parent = nullptr);
};
#endif // BASEEDITDIALOG_H