[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kaddressbook
From: Aurélien Gâteau <agateau () kde ! org>
Date: 2010-11-19 13:25:17
Message-ID: 20101119132517.1F0C9AC8A0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1198723 by gateau:
Removed show/hide actions which were not reachable from the UI
CCMAIL:tokoe@kde.org
M +0 -36 mainwidget.cpp
M +0 -4 mainwidget.h
--- trunk/KDE/kdepim/kaddressbook/mainwidget.cpp #1198722:1198723
@@ -407,27 +407,6 @@
action->setWhatsThis( i18n( "Select all contacts in the current address book view." ) );
connect( action, SIGNAL( triggered( bool ) ), mItemView, SLOT( selectAll() ) );
- toggleAction = collection->add<KToggleAction>( "options_show_collectionview" );
- toggleAction->setText( i18n( "Show Address Books View" ) );
- toggleAction->setWhatsThis( i18n( "Toggle whether the address books view shall be visible." ) );
- toggleAction->setCheckedState( KGuiItem( i18n( "Hide Address Books View" ) ) );
- toggleAction->setChecked( true );
- connect( toggleAction, SIGNAL( toggled( bool ) ), SLOT( setCollectionViewVisible( bool ) ) );
-
- toggleAction = collection->add<KToggleAction>( "options_show_itemview" );
- toggleAction->setText( i18n( "Show Contacts View" ) );
- toggleAction->setWhatsThis( i18n( "Toggle whether the contacts view shall be visible." ) );
- toggleAction->setCheckedState( KGuiItem( i18n( "Hide Contacts View" ) ) );
- toggleAction->setChecked( true );
- connect( toggleAction, SIGNAL( toggled( bool ) ), SLOT( setItemViewVisible( bool ) ) );
-
- toggleAction = collection->add<KToggleAction>( "options_show_detailsview" );
- toggleAction->setText( i18n( "Show Details View" ) );
- toggleAction->setWhatsThis( i18n( "Toggle whether the details view shall be visible." ) );
- toggleAction->setCheckedState( KGuiItem( i18n( "Hide Details View" ) ) );
- toggleAction->setChecked( true );
- connect( toggleAction, SIGNAL( toggled( bool ) ), SLOT( setDetailsViewVisible( bool ) ) );
-
toggleAction = collection->add<KToggleAction>( "options_show_simplegui" );
toggleAction->setText( i18n( "Show Simple View" ) );
action->setWhatsThis( i18n( "Show a simple mode of the address book view." ) );
@@ -553,21 +532,6 @@
}
}
-void MainWidget::setCollectionViewVisible( bool visible )
-{
- mCollectionView->setVisible( visible );
-}
-
-void MainWidget::setItemViewVisible( bool visible )
-{
- mItemView->setVisible( visible );
-}
-
-void MainWidget::setDetailsViewVisible( bool visible )
-{
- mDetailsPane->setVisible( visible );
-}
-
void MainWidget::setSimpleGuiMode( bool on )
{
mCollectionView->setVisible( !on );
--- trunk/KDE/kdepim/kaddressbook/mainwidget.h #1198722:1198723
@@ -69,10 +69,6 @@
void itemSelectionChanged( const QModelIndex&, const QModelIndex& );
void selectFirstItem();
- void setDetailsViewVisible( bool visible );
- void setItemViewVisible( bool visible );
- void setCollectionViewVisible( bool visible );
-
void setSimpleGuiMode( bool on );
void restoreState();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic