2021-02-23 Fred Gleason <fredg@paravelsystems.com>

* Removed the Qt3Support library from the build system.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-02-23 18:07:21 -05:00
parent b2f8532e25
commit 89a0d72439
508 changed files with 5763 additions and 6078 deletions

View File

@@ -38,7 +38,7 @@ void RDComboBox::insertItem(const QString &str,bool unique)
return;
}
}
QComboBox::insertItem(str);
QComboBox::insertItem(count(),str);
}
@@ -54,6 +54,18 @@ void RDComboBox::addIgnoredKey(int key)
}
bool RDComboBox::setCurrentText(const QString &str)
{
for(int i=0;i<count();i++) {
if(itemData(i).toString()==str) {
setCurrentIndex(i);
return true;
}
}
return false;
}
void RDComboBox::mousePressEvent(QMouseEvent *e)
{
if(combo_setup_mode) {
@@ -80,7 +92,7 @@ void RDComboBox::keyPressEvent(QKeyEvent *e)
bool RDComboBox::IsItemUnique(const QString &str)
{
for(int i=0;i<count();i++) {
if(str==text(i)) {
if(str==itemData(i).toString()) {
return false;
}
}