~ubuntu-branches/ubuntu/utopic/kile/utopic-proposed

« back to all changes in this revision

Viewing changes to src/dialogs/tabular/tabularproperties.cpp

  • Committer: Package Import Robot
  • Author(s): Prasad Murthy
  • Date: 2013-01-24 19:03:35 UTC
  • mfrom: (1.1.24)
  • Revision ID: package-import@ubuntu.com-20130124190335-29sj32fdx0d2kcmw
Tags: 1:2.1.3-0ubuntu1
* New upstream release
* Drop kubuntu_02_disable_embedded_kbibtex.diff as kbibtex is now usable with kde4
* Add kbibtex to suggests
* Change the Vcs links to the Ubuntu bzr branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/********************************************************************************************
2
 
    begin                : Sunday Jun 27 2008
3
 
    copyright            : (C) 2008 by Mathias Soeken (msoeken@informatik.uni-bremen.de)
4
 
    copyright            : (C) 2005-2006 by Holger Danielsson (holger.danielsson@t-online.de)
 
2
    Copyright (C) 2008 by Mathias Soeken (msoeken@informatik.uni-bremen.de)
 
3
              (C) 2005-2006 by Holger Danielsson (holger.danielsson@t-online.de)
5
4
 ********************************************************************************************/
6
5
 
7
6
/***************************************************************************
33
32
 
34
33
void TabularProperties::addRowColor(int row, const QColor &color)
35
34
{
36
 
        if(!color.isValid() || color == Qt::white) {
 
35
        if(!color.isValid()) {
37
36
                return;
38
37
        }
39
 
        
 
38
 
40
39
        m_RowColors.insert(row, color);
41
40
}
42
41
 
43
42
void TabularProperties::addColor(const QColor &color)
44
43
{
45
 
        if(!color.isValid() || color == Qt::white) {
 
44
        if(!color.isValid()) {
46
45
                return;
47
46
        }
48
47
 
70
69
{
71
70
        if(m_RowColors.contains(row)) {
72
71
                return m_RowColors[row];
73
 
        } else {
 
72
        }
 
73
        else {
74
74
                return QColor();
75
75
        }
76
76
}
77
77
 
78
78
QString TabularProperties::colorName(const QColor &color) const
79
79
{
80
 
        if(color.isValid() && color != Qt::white && m_ColorNames.contains(color.name())) {
 
80
        if(color.isValid() && m_ColorNames.contains(color.name())) {
81
81
                return m_ColorNames[color.name()];
82
 
        } else {
 
82
        }
 
83
        else {
83
84
                return QString();
84
85
        }
85
86
}