Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 457024
Collapse All | Expand All

(-)/tmp/qttools-opensource-src-5.0.1/src/qtconfig/mainwindow.cpp (-4 / +3 lines)
Lines 61-67 Link Here
61
#include <QMessageBox>
61
#include <QMessageBox>
62
#include <QStyle>
62
#include <QStyle>
63
#include <QtEvents>
63
#include <QtEvents>
64
#include <QInputContext>
65
#include <QtDebug>
64
#include <QtDebug>
66
#include <QPixmap>
65
#include <QPixmap>
67
66
Lines 752-758 Link Here
752
    if (row > ui->substitutionsListBox->count())
751
    if (row > ui->substitutionsListBox->count())
753
        row = ui->substitutionsListBox->count() - 1;
752
        row = ui->substitutionsListBox->count() - 1;
754
    ui->substitutionsListBox->setCurrentRow(row);
753
    ui->substitutionsListBox->setCurrentRow(row);
755
    QFont::removeSubstitution(ui->familySubstitutionCombo->currentText());
754
    QFont::removeSubstitutions(ui->familySubstitutionCombo->currentText());
756
    QFont::insertSubstitutions(ui->familySubstitutionCombo->currentText(), subs);
755
    QFont::insertSubstitutions(ui->familySubstitutionCombo->currentText(), subs);
757
    setModified(true);
756
    setModified(true);
758
}
757
}
Lines 791-797 Link Here
791
    ui->substitutionsListBox->clear();
790
    ui->substitutionsListBox->clear();
792
    ui->substitutionsListBox->insertItems(0, subs);
791
    ui->substitutionsListBox->insertItems(0, subs);
793
    ui->substitutionsListBox->setCurrentRow(row + 1);
792
    ui->substitutionsListBox->setCurrentRow(row + 1);
794
    QFont::removeSubstitution(ui->familySubstitutionCombo->currentText());
793
    QFont::removeSubstitutions(ui->familySubstitutionCombo->currentText());
795
    QFont::insertSubstitutions(ui->familySubstitutionCombo->currentText(), subs);
794
    QFont::insertSubstitutions(ui->familySubstitutionCombo->currentText(), subs);
796
    setModified(true);
795
    setModified(true);
797
}
796
}
Lines 809-815 Link Here
809
    ui->substitutionsListBox->clear();
808
    ui->substitutionsListBox->clear();
810
    ui->substitutionsListBox->insertItems(0, subs);
809
    ui->substitutionsListBox->insertItems(0, subs);
811
    ui->substitutionsListBox->setCurrentRow(row - 1);
810
    ui->substitutionsListBox->setCurrentRow(row - 1);
812
    QFont::removeSubstitution(ui->familySubstitutionCombo->currentText());
811
    QFont::removeSubstitutions(ui->familySubstitutionCombo->currentText());
813
    QFont::insertSubstitutions(ui->familySubstitutionCombo->currentText(), subs);
812
    QFont::insertSubstitutions(ui->familySubstitutionCombo->currentText(), subs);
814
    setModified(true);
813
    setModified(true);
815
}
814
}

Return to bug 457024