[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [digikam] /: fixed typo in filtersiderbarwidget.cpp
From:       Smit Mehta <smit.meh () gmail ! com>
Date:       2012-09-17 15:42:30
Message-ID: 20120917154230.B13BFA6094 () git ! kde ! org
[Download RAW message or body]

Git commit ae2e4874ab324d49a96f4f1852213ac9f5577484 by Smit Mehta.
Committed on 17/09/2012 at 17:42.
Pushed by smitmehta into branch 'master'.

fixed typo in filtersiderbarwidget.cpp
added enum for more readibility
BUGS:306879

M  +2    -1    .gitignore
M  +2    -1    NEWS
M  +1    -1    digikam/filters/filtersidebarwidget.cpp
M  +9    -0    digikam/filters/filtersidebarwidget.h

http://commits.kde.org/digikam/ae2e4874ab324d49a96f4f1852213ac9f5577484

diff --git a/.gitignore b/.gitignore
index b4213a9..cd22092 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
 *.kate-swp
 tests/databases/*/*.db
 *.kde4
-*.*~
+*.kdev4
+*~
diff --git a/NEWS b/NEWS
index 74f828b..f6b20c8 100644
--- a/NEWS
+++ b/NEWS
@@ -43,4 +43,5 @@ BUGFIXES FROM KDE BUGZILLA (alias B.K.O | http://bugs.kde.org):
 013 ==> 148649 - digiKam needs a better image scaler.
 014 ==> 261698 - Zoom to 100% does not map 1 picture pixel to 1 screen pixel.
 015 ==> 303690 - Hierarchical tags inconsistencies.
-016 ==> 
+016 ==> 306879 - Filter sections folding is weird
+017 ==>
diff --git a/digikam/filters/filtersidebarwidget.cpp b/digikam/filters/filtersidebarwidget.cpp
index 7e7e4ea..a716edf 100644
--- a/digikam/filters/filtersidebarwidget.cpp
+++ b/digikam/filters/filtersidebarwidget.cpp
@@ -268,7 +268,7 @@ void FilterSideBarWidget::slotTagOptionsMenu()
 
 void FilterSideBarWidget::slotItemExpanded(int id, bool b)
 {
-    if (id == 2)
+    if (id == Digikam::TAGS)
     {
         d->expanderVlay->setStretchFactor(d->space, b ? 0 : 100);
     }
diff --git a/digikam/filters/filtersidebarwidget.h b/digikam/filters/filtersidebarwidget.h
index 3de4f37..ed7f3af 100644
--- a/digikam/filters/filtersidebarwidget.h
+++ b/digikam/filters/filtersidebarwidget.h
@@ -45,6 +45,15 @@
 namespace Digikam
 {
 
+
+enum FilterType {
+    TEXT = 0,
+    MIME,
+    GEOLOCATION,
+    TAGS,
+    LABELS
+};
+    
 class TagModel;
 class TAlbum;
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic