~sil/ubuntu-keyboard/numbers-on-top-row

« back to all changes in this revision

Viewing changes to src/lib/models/wordcandidate.cpp

  • Committer: Guenter Schwann
  • Date: 2013-11-13 15:36:39 UTC
  • mfrom: (101.4.5 keyboard-cleanups)
  • Revision ID: guenter.schwann@canonical.com-20131113153639-9i9irt1mle00vy1t
Remove some dead code

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    , m_word(word)
50
50
{
51
51
    if (source == WordCandidate::SourceUser) {
52
 
        m_label.setText(QString(QT_TR_NOOP("Add '%1' to user dictionary")).arg(word));
 
52
        m_label = QString(QT_TR_NOOP("Add '%1' to user dictionary")).arg(word);
53
53
    } else {
54
 
        m_label.setText(word);
 
54
        m_label = word;
55
55
    }
56
56
}
57
57
 
58
58
bool WordCandidate::valid() const
59
59
{
60
60
    return (m_area.size().isValid()
61
 
            && not m_label.text().isEmpty());
 
61
            && not m_label.isEmpty());
62
62
}
63
63
 
64
64
QRect WordCandidate::rect() const
91
91
    m_area = area;
92
92
}
93
93
 
94
 
Label WordCandidate::label() const
95
 
{
96
 
    return m_label;
97
 
}
98
 
 
99
 
Label & WordCandidate::rLabel()
100
 
{
101
 
    return m_label;
102
 
}
103
 
 
104
 
void WordCandidate::setLabel(const Label &label)
 
94
QString WordCandidate::label() const
 
95
{
 
96
    return m_label;
 
97
}
 
98
 
 
99
QString & WordCandidate::rLabel()
 
100
{
 
101
    return m_label;
 
102
}
 
103
 
 
104
void WordCandidate::setLabel(const QString &label)
105
105
{
106
106
    m_label = label;
107
107
}