mirror of
https://github.com/loimu/zeit.git
synced 2025-09-15 12:58:44 +08:00
zeit: remove BaseEditDialog
This commit is contained in:
parent
7d61ae0391
commit
6d237535c8
@ -5,7 +5,6 @@ set(zeit_SRCS
|
||||
aboutdialog.cpp
|
||||
alarmdialog.cpp
|
||||
basedialog.cpp
|
||||
baseeditdialog.cpp
|
||||
commanddialog.cpp
|
||||
commands.cpp
|
||||
main.cpp
|
||||
|
||||
@ -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>"));
|
||||
}
|
||||
@ -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
|
||||
Loading…
Reference in New Issue
Block a user