File indexing completed on 2024-05-12 04:58:12
0001 /* ============================================================ 0002 * Falkon - Qt web browser 0003 * Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com> 0004 * Copyright (C) 2017 Razi Alavizadeh <s.r.alavizadeh@gmail.com> 0005 * 0006 * This program is free software: you can redistribute it and/or modify 0007 * it under the terms of the GNU General Public License as published by 0008 * the Free Software Foundation, either version 3 of the License, or 0009 * (at your option) any later version. 0010 * 0011 * This program is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 * GNU General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU General Public License 0017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 * ============================================================ */ 0019 #ifndef CHECKBOXDIALOG_H 0020 #define CHECKBOXDIALOG_H 0021 0022 #include <QMessageBox> 0023 0024 #include "qzcommon.h" 0025 0026 class FALKON_EXPORT CheckBoxDialog : public QMessageBox 0027 { 0028 Q_OBJECT 0029 public: 0030 explicit CheckBoxDialog(const QMessageBox::StandardButtons &buttons, QWidget* parent = nullptr); 0031 0032 void setCheckBoxText(const QString &text); 0033 0034 bool isChecked() const; 0035 void setDefaultCheckState(Qt::CheckState state); 0036 0037 private: 0038 QCheckBox* m_checkBox; 0039 0040 }; 0041 0042 #endif // CHECKBOXDIALOG_H