Warning, file /pim/kalarm/src/templatepickdlg.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * templatepickdlg.h - dialog to choose an alarm template 0003 * Program: kalarm 0004 * SPDX-FileCopyrightText: 2004-2023 David Jarvie <djarvie@kde.org> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 #pragma once 0009 0010 #include "kalarmcalendar/kaevent.h" 0011 0012 #include <QDialog> 0013 class QPushButton; 0014 class QResizeEvent; 0015 class TemplateListModel; 0016 class TemplateListView; 0017 0018 using namespace KAlarmCal; 0019 0020 class TemplatePickDlg : public QDialog 0021 { 0022 Q_OBJECT 0023 public: 0024 explicit TemplatePickDlg(KAEvent::Action, QWidget* parent = nullptr); 0025 KAEvent selectedTemplate() const; 0026 protected: 0027 void resizeEvent(QResizeEvent*) override; 0028 private Q_SLOTS: 0029 void slotSelectionChanged(); 0030 void slotDoubleClick(const QModelIndex&); 0031 private: 0032 TemplateListModel* mListFilterModel; 0033 TemplateListView* mListView; 0034 QPushButton* mOkButton; 0035 }; 0036 0037 // vim: et sw=4: