17 lines
264 B
C++
17 lines
264 B
C++
#include "mycombobox.h"
|
|
|
|
MyComboBox::MyComboBox(QWidget *parent):QComboBox(parent)
|
|
{
|
|
|
|
}
|
|
|
|
void MyComboBox::mousePressEvent(QMouseEvent *event)
|
|
{
|
|
if(event->button() == Qt::LeftButton)
|
|
{
|
|
emit clicked();
|
|
}
|
|
QComboBox::mousePressEvent(event);
|
|
}
|
|
|