mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-13 06:03:37 +02:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user