mirror of
https://github.com/ModOrganizer2/modorganizer.git
synced 2026-07-27 13:58:24 -07:00
19 lines
539 B
C++
19 lines
539 B
C++
#include "modidlineedit.h"
|
|
#include <QWhatsThis>
|
|
|
|
#include <QEvent>
|
|
#include <QWhatsThisClickedEvent>
|
|
|
|
ModIDLineEdit::ModIDLineEdit(QWidget *parent) : QLineEdit(parent) {}
|
|
ModIDLineEdit::ModIDLineEdit(const QString &text, QWidget *parent) : QLineEdit(text, parent) {}
|
|
|
|
bool ModIDLineEdit::event(QEvent *event)
|
|
{
|
|
if (event->type() == QEvent::WhatsThisClicked)
|
|
{
|
|
QWhatsThisClickedEvent *wtcEvent = static_cast<QWhatsThisClickedEvent*>(event);
|
|
emit linkClicked(wtcEvent->href().trimmed());
|
|
}
|
|
|
|
return QLineEdit::event(event);
|
|
} |