kwin/kcmkwin/kwinrules/rulesdialog.h
Vlad Zahorodnii 1fb9f6f13a Switch to SPDX license markers
The main advantage of SPDX license identifiers over the traditional
license headers is that it's more difficult to overlook inappropriate
licenses for kwin, for example GPL 3. We also don't have to copy a
lot of boilerplate text.

In order to create this change, I ran licensedigger -r -c from the
toplevel source directory.
2020-08-07 19:57:56 +00:00

41 lines
730 B
C++

/*
* SPDX-FileCopyrightText: 2004 Lubos Lunak <l.lunak@kde.org>
* SPDX-FileCopyrightText: 2020 Ismael Asensio <isma.af@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KWIN_RULESDIALOG_H
#define KWIN_RULESDIALOG_H
#include "rulesmodel.h"
#include "../../rules.h"
#include <QDialog>
namespace KWin
{
class Rules;
class RulesDialog : public QDialog
{
Q_OBJECT
public:
explicit RulesDialog(QWidget* parent = nullptr, const char* name = nullptr);
Rules* edit(Rules* r, const QVariantMap& info, bool show_hints);
protected:
void accept() override;
private:
RulesModel* m_rulesModel;
QWidget *m_quickWidget;
Rules* m_rules;
};
} // namespace
#endif // KWIN_RULESDIALOG_H