Warning, file /pim/kalarm/src/emailidcombo.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * emailidcombo.h - email identity combo box with read-only option 0003 * Program: kalarm 0004 * SPDX-FileCopyrightText: 2004, 2006 David Jarvie <djarvie@kde.org> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include "lib/combobox.h" 0012 0013 #include <KIdentityManagementWidgets/IdentityCombo> 0014 0015 class QMouseEvent; 0016 class QKeyEvent; 0017 0018 class EmailIdCombo : public KIdentityManagementWidgets::IdentityCombo 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit EmailIdCombo(KIdentityManagementCore::IdentityManager*, QWidget* parent = nullptr); 0023 void setReadOnly(bool ro) { mReadOnly = ro; } 0024 0025 protected: 0026 void mousePressEvent(QMouseEvent*) override; 0027 void mouseReleaseEvent(QMouseEvent*) override; 0028 void mouseMoveEvent(QMouseEvent*) override; 0029 void keyPressEvent(QKeyEvent*) override; 0030 void keyReleaseEvent(QKeyEvent*) override; 0031 0032 private: 0033 bool mReadOnly {false}; // value cannot be changed 0034 }; 0035 0036 // vim: et sw=4: