mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Don't set focus/show options menu if choiceItem is clicked
This commit is contained in:
parent
fce5b004b4
commit
1c5bb8345e
@ -1,6 +1,7 @@
|
||||
#include "choiceitem.h"
|
||||
#include "ui_choiceitem.h"
|
||||
#include <QFile>
|
||||
#include <QMouseEvent>
|
||||
|
||||
ChoiceItem::ChoiceItem(QString key, QString value, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
@ -25,3 +26,9 @@ ChoiceItem::~ChoiceItem()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void ChoiceItem::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
return;
|
||||
}
|
||||
|
@ -17,6 +17,9 @@ public:
|
||||
QString getKey() { return m_key; }
|
||||
QString getValue() { return m_value; }
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
|
||||
private:
|
||||
Ui::ChoiceItem *ui;
|
||||
QString m_key;
|
||||
|
Loading…
x
Reference in New Issue
Block a user