~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/libs/imageproperties/imagepropertiessidebardb.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.3.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20080717202539-ttj4and3ds1ldgn1
Tags: upstream-0.9.4
ImportĀ upstreamĀ versionĀ 0.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Description : image properties side bar using data from 
8
8
 *               digiKam database.
9
9
 *
10
 
 * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 * Copyright (C) 2004-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
11
 * Copyright (C) 2007 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
12
12
 *
13
13
 * This program is free software; you can redistribute it
42
42
 
43
43
#include "ddebug.h"
44
44
#include "dimg.h"
45
 
#include "themeengine.h"
46
45
#include "imageinfo.h"
47
46
#include "imagedescedittab.h"
48
47
#include "imageattributeswatch.h"
91
90
 
92
91
    appendTab(d->desceditTab, SmallIcon("imagecomment"), i18n("Captions/Tags"));
93
92
 
94
 
    slotThemeChanged();
95
 
 
96
93
    // ----------------------------------------------------------
97
94
 
98
95
    connect(this, SIGNAL(signalChangedTab(QWidget*)),
99
96
            this, SLOT(slotChangedTab(QWidget*)));
100
97
 
101
 
    connect(ThemeEngine::instance(), SIGNAL(signalThemeChanged()),
102
 
            this, SLOT(slotThemeChanged()));
103
 
 
104
98
    connect(d->desceditTab, SIGNAL(signalProgressBarMode(int, const QString&)),
105
99
            this, SIGNAL(signalProgressBarMode(int, const QString&)));
106
100
 
366
360
    d->desceditTab->assignRating(5);
367
361
}
368
362
 
369
 
void ImagePropertiesSideBarDB::slotThemeChanged()
 
363
void ImagePropertiesSideBarDB::refreshTagsView()
370
364
{
371
 
    QColor backgroundColor(ThemeEngine::instance()->baseColor());
372
 
    QColor foregroundColor(ThemeEngine::instance()->textRegColor());
373
 
    m_propertiesTab->colorChanged(backgroundColor, foregroundColor);
 
365
    d->desceditTab->refreshTagsView();
374
366
}
375
367
 
376
368
}  // NameSpace Digikam