Skip to content
  • Jason Harris's avatar
    First pass at fixing compiler warnings due to deprecated functions in · b561aebd
    Jason Harris authored
    Qt-4.1.2.  A lot more to come :(.  Here are the function updates I 
    addressed this time:
    
    QComboBox::insertItem()  --> addItem()
    QComboBox::text()  --> itemText()  **not changed globally
    QComboBox::setCurrentText()  --> setEditText()
    QComboBox::currentItem()  --> currentIndex()
    QComboBox::setCurrentItem()  --> setCurrentIndex()
    QString::find()  --> indexOf()
    QString::lower()  --> toLower()
    QString::ascii()  --> toAscii()
    QStringList::split()  --> QString::split()
    QFile::setName()  --> setFileName()
    QFile::name()  --> fileName()
    QAbstractButton::setIconSet()  --> setIcon()
    QTextEdit::setText()  --> setHtml() **not changed globally
    QObject::name()  --> objectName()
    
    All of these were changed throughout the codebase, except the two 
    marked.  These have names used in a large number of classes, so it 
    wasn't easy to do a global search-and-replace.
    
    CCMAIL: kstars-devel@kde.org
    
    
    svn path=/trunk/KDE/kdeedu/kstars/; revision=529692
    b561aebd