[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/akonadi-ports/kdepim/messagelist
From: Laurent Montel <montel () kde ! org>
Date: 2009-10-15 16:35:05
Message-ID: 1255624505.917569.23093.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1035677 by mlaurent:
Export "selectionEmpty"
M +6 -0 core/widgetbase.cpp
M +4 -1 core/widgetbase.h
M +9 -0 pane.cpp
M +5 -0 pane.h
M +6 -0 widget.cpp
M +6 -0 widget.h
--- branches/work/akonadi-ports/kdepim/messagelist/core/widgetbase.cpp #1035676:1035677
@@ -1120,3 +1120,9 @@
{
return d->mView->isThreaded();
}
+
+bool Widget::selectionEmpty() const
+{
+ return d->mView->selectionEmpty();
+}
+
--- branches/work/akonadi-ports/kdepim/messagelist/core/widgetbase.h #1035676:1035677
@@ -119,8 +119,11 @@
* (or if there is no current Aggregation).
*/
bool isThreaded() const;
+ /**
+ * Fast function that determines if the selection is empty
+ */
+ bool selectionEmpty() const;
-
public slots:
/**
--- branches/work/akonadi-ports/kdepim/messagelist/pane.cpp #1035676:1035677
@@ -494,5 +494,14 @@
return w->isThreaded();
}
+bool Pane::selectionEmpty() const
+{
+ Widget *w = static_cast<Widget*>( currentWidget() );
+ if ( w == 0 ) {
+ return false;
+ }
+ return w->selectionEmpty();
+}
+
#include "pane.moc"
--- branches/work/akonadi-ports/kdepim/messagelist/pane.h #1035676:1035677
@@ -247,6 +247,10 @@
*/
bool isThreaded() const;
+ /**
+ * Fast function that determines if the selection is empty
+ */
+ bool selectionEmpty() const;
public slots:
/**
@@ -298,6 +302,7 @@
*/
void statusMessage( const QString &message );
+
private:
Q_PRIVATE_SLOT(d, void onSelectionChanged( const QItemSelection&, const QItemSelection& ))
Q_PRIVATE_SLOT(d, void onNewTabClicked())
--- branches/work/akonadi-ports/kdepim/messagelist/widget.cpp #1035676:1035677
@@ -513,3 +513,9 @@
{
return view()->isThreaded();
}
+
+bool Widget::selectionEmpty() const
+{
+ return view()->selectionEmpty();
+}
+
--- branches/work/akonadi-ports/kdepim/messagelist/widget.h #1035676:1035677
@@ -236,6 +236,12 @@
*/
bool isThreaded() const;
+ /**
+ * Fast function that determines if the selection is empty
+ */
+ bool selectionEmpty() const;
+
+
protected:
/**
* Reimplemented from MessageList::Core::Widget
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic