Mercurial > trustbridge
diff ui/certificateitemwidget.h @ 706:6bb3018b966d
Merged
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Wed, 02 Jul 2014 11:57:32 +0200 |
parents | 31c3d2bc9880 |
children | 9c4543128666 |
line wrap: on
line diff
--- a/ui/certificateitemwidget.h Wed Jul 02 11:56:56 2014 +0200 +++ b/ui/certificateitemwidget.h Wed Jul 02 11:57:32 2014 +0200 @@ -17,6 +17,17 @@ #include <QComboBox> #include "certificate.h" +/** @brief A combo box that shows the text only in the popup + * + * The text shown is the data set as Qt::UserRole + */ +class IconOnlyTextPopupBox : public QComboBox +{ +protected: + virtual void showPopup(); + virtual void hidePopup(); +}; + class CertificateItemWidget : public QWidget { @@ -41,7 +52,7 @@ bool mState; bool mEditable; QLabel *mLabel; - QComboBox *mComboBox; + IconOnlyTextPopupBox *mComboBox; QString mInstallLabel; QString mRemoveLabel;