git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@716
56b19765-1e22-0410-a548-
a0f45d66c51a
#include <qfont.h>
+#include <kcompletion.h>
+
/**
@author Hideki Ikemoto
*/
QFont m_font;
QFont m_threadFont;
QString m_boardListURL;
+ KCompletion m_nameCompletion;
KitaConfig();
virtual ~KitaConfig();
public:
static void setThreadFont( QFont font ) { getInstance()->m_threadFont = font; }
static void setBoardListURL( QString url ) { getInstance()->m_boardListURL = url; }
static QString& boardListURL() { return getInstance()->m_boardListURL; }
+ static KCompletion* nameCompletion() { return &(getInstance()->m_nameCompletion); }
+ static void addNameCompletionItem( QString& item ) { getInstance()->m_nameCompletion.addItem( item ); }
};
#endif
new_dlg->threadNameLabel->setText( thread.name() );
new_dlg->threadURLLabel->setText( thread.url() );
+ KCompletion* comp = KitaConfig::nameCompletion();
+ new_dlg->nameLine->setCompletionObject( comp );
+
new_dlg->setCaption( i18n("Write in %1").arg( thread.name() ) );
return new_dlg;
}
if ( ! m_postInfo.check() )
return ;
+
+ KitaConfig::addNameCompletionItem( m_postInfo.name );
+
KURL bbscgi;
bbscgi.setProtocol( "http" );
bbscgi.setHost( m_postInfo.host );