This commit is contained in:
2025-07-02 07:45:34 +03:00
parent a4135d45d8
commit 1fee25a38c
121 changed files with 16425 additions and 0 deletions

32
comboboxmod.cpp Normal file
View File

@@ -0,0 +1,32 @@
#include "comboboxmod.h"
comboboxmod::comboboxmod(QWidget *parent) :
QComboBox(parent)
{
uid =0;
}
void comboboxmod::keyPressEvent(QKeyEvent *e)
{
int c=e->key();
bool fl = true;
if (e->modifiers() & Qt::AltModifier)
{
switch (c) {
case 0x31:
case 0x32:
emit activate1(c);
fl = false;
break;
default:
break;
}
}
if ((uid==0x32)&&(c==Qt::Key_Right)) fl = false;
if ((uid==0x32)&&(c==Qt::Key_Tab)) fl = false;
if (fl) QComboBox::keyPressEvent(e);
}