~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to libs/widgets/common/rexpanderboxexclusive.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-21 23:19:11 UTC
  • mfrom: (1.2.33 upstream) (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20101221231911-z9jip7s5aht1jqn9
Tags: 2:1.7.0-1ubuntu1
* Merge from Debian Experimental. Remaining Ubuntu changes:
  - Export .pot name and copy to plugins in debian/rules
  - Version build-depends on kipi-plugins-dev to ensure build is against the
    same version on all archs
* Drop debian/patches/kubuntu_01_linker.diff, incoporated upstream
* Remove patches directory and unused patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
{
30
30
 
31
31
RExpanderBoxExclusive::RExpanderBoxExclusive(QWidget* parent)
32
 
                     : KDcrawIface::RExpanderBox(parent)
 
32
    : KDcrawIface::RExpanderBox(parent)
33
33
{
34
34
    setIsToolBox(true);
35
35
}
41
41
void RExpanderBoxExclusive::slotItemExpanded(bool b)
42
42
{
43
43
    KDcrawIface::RLabelExpander* exp = dynamic_cast<KDcrawIface::RLabelExpander*>(sender());
44
 
    if (!exp) return;
 
44
 
 
45
    if (!exp)
 
46
    {
 
47
        return;
 
48
    }
45
49
 
46
50
    if (isToolBox() && b)
47
51
    {
53
57
            {
54
58
                setItemExpanded(item, false);
55
59
            }
 
60
 
56
61
            item++;
57
62
        }
58
63
    }
 
64
 
59
65
    emit signalItemExpanded(indexOf(exp), b);
60
66
}
61
67
 
69
75
    return (m_toolbox);
70
76
}
71
77
 
72
 
} // namespace Digikam 
 
78
} // namespace Digikam