00001 /*************************************************************************** 00002 * * 00003 * overviewform.ui.h * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * Read the file COPYING for details. * 00011 * * 00012 * copyright: (C) 2003 by Jan Mueller * 00013 * email: janmueller7@hotmail.com * 00014 * * 00015 ***************************************************************************/ 00016 00017 /**************************************************************************** 00018 ** ui.h extension file, included from the uic-generated form implementation. 00019 ** 00020 ** If you wish to add, delete or rename functions or slots use 00021 ** Qt Designer which will update this file, preserving your code. Create an 00022 ** init() function in place of a constructor, and a destroy() function in 00023 ** place of a destructor. 00024 *****************************************************************************/ 00025 00026 void OverviewForm::init() { 00027 QSettings settings; 00028 Q_ASSERT(parent()); 00029 QString backgr = settings.readEntry(QString("/literature/backgr_")+parent()->name(), ""); 00030 if(!backgr.isEmpty()) setErasePixmap(QPixmap(backgr)); 00031 } 00032 00033 00034 void OverviewForm::incrementalSearch( const QString & s ) 00035 { 00036 linklistbox->setCurrentItem(linklistbox->findItem(s, 0, Qt::BeginsWith)); 00037 linklistbox->ensureItemVisible(linklistbox->findItem(s, 0, Qt::BeginsWith)); 00038 }