kaddressbook Library API Documentation

rbs_appearance.ui.h

00001 /**************************************************************************** 00002 ** ui.h extension file, included from the uic-generated form implementation. 00003 ** 00004 ** If you wish to add, delete or rename slots use Qt Designer which will 00005 ** update this file, preserving your code. Create an init() slot in place of 00006 ** a constructor, and a destroy() slot in place of a destructor. 00007 *****************************************************************************/ 00008 00009 00010 void RingBinderStyleAppearanceForm::groupLetter() 00011 { 00012 if ( letterListBox->currentItem() > 0 ) { 00013 int id = letterListBox->currentItem(); 00014 letterListBox->changeItem( 00015 letterListBox->text(id-1) + letterListBox->text(id).at(0) 00016 , id - 1); 00017 if ( letterListBox->text(id).length() > 1 ) { 00018 letterListBox->changeItem( 00019 letterListBox->text(id).right(letterListBox->text(id).length()-1) 00020 , id 00021 ); 00022 letterListBox->setCurrentItem(id); 00023 } else { 00024 letterListBox->removeItem(id); 00025 } 00026 } 00027 } 00028 00029 void RingBinderStyleAppearanceForm::ungroupLetter() 00030 { 00031 if ( letterListBox->text(letterListBox->currentItem()).length() > 1 ) { 00032 int id = letterListBox->currentItem(); 00033 letterListBox->insertItem( QString(letterListBox->text(id).at(letterListBox->text(id).length()-1)), id+1 ); 00034 letterListBox->changeItem( letterListBox->text(id).left(letterListBox->text(id).length()-1), id ); 00035 } 00036 }
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:19:05 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003