svnno****@sourc*****
svnno****@sourc*****
2009年 7月 19日 (日) 07:16:30 JST
Revision: 2436 http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2436 Author: nogu Date: 2009-07-19 07:16:30 +0900 (Sun, 19 Jul 2009) Log Message: ----------- minor changes Modified Paths: -------------- kita/branches/KITA-KDE4/kita/src/bbsview.cpp kita/branches/KITA-KDE4/kita/src/bbsview.h Modified: kita/branches/KITA-KDE4/kita/src/bbsview.cpp =================================================================== --- kita/branches/KITA-KDE4/kita/src/bbsview.cpp 2009-07-18 22:10:13 UTC (rev 2435) +++ kita/branches/KITA-KDE4/kita/src/bbsview.cpp 2009-07-18 22:16:30 UTC (rev 2436) @@ -55,28 +55,22 @@ BBSView::BBSView(QWidget *, const char *name) : m_favorites(0) { /* copied from Base class */ - BBSViewBaseLayout = new QVBoxLayout(this); + bbsViewBaseLayout = new QVBoxLayout(this); layout10 = new QHBoxLayout(0); - SearchCombo = new KComboBox(this); - QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(1), static_cast<QSizePolicy::Policy>(4)); - sizePolicy.setHorizontalStretch(0); - sizePolicy.setVerticalStretch(0); - sizePolicy.setHeightForWidth(SearchCombo->sizePolicy().hasHeightForWidth()); - SearchCombo->setSizePolicy(sizePolicy); - SearchCombo->setEditable(true); - SearchCombo->setMaxCount(10); - layout10->addWidget(SearchCombo); + searchCombo = new KComboBox(this); + searchCombo->setEditable(true); + searchCombo->setMaxCount(10); + layout10->addWidget(searchCombo); spacer2 = new QSpacerItem(467, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); layout10->addItem(spacer2); - BBSViewBaseLayout->addLayout(layout10); + bbsViewBaseLayout->addLayout(layout10); m_boardList = new QTreeWidget(this); m_boardList->setRootIsDecorated(true); - BBSViewBaseLayout->addWidget(m_boardList); + bbsViewBaseLayout->addWidget(m_boardList); resize(QSize(600, 482).expandedTo(minimumSizeHint())); - setAttribute(Qt::WA_WState_Polished); /* copy end */ m_boardList->setHeaderLabel(i18n("board name")); @@ -92,7 +86,7 @@ SLOT(loadBoard(QTreeWidgetItem*))); connect(FavoriteBoards::getInstance(), SIGNAL(changed()), SLOT(refreshFavoriteBoards())); - connect(SearchCombo, SIGNAL(textChanged(const QString&)), + connect(searchCombo, SIGNAL(textChanged(const QString&)), SLOT(filter(const QString&))); } @@ -470,7 +464,7 @@ void BBSView::setFont(const QFont& font) { m_boardList->setFont(font); - SearchCombo->setFont(font); + searchCombo->setFont(font); } /* public slot :*/ /* virtual */ Modified: kita/branches/KITA-KDE4/kita/src/bbsview.h =================================================================== --- kita/branches/KITA-KDE4/kita/src/bbsview.h 2009-07-18 22:10:13 UTC (rev 2435) +++ kita/branches/KITA-KDE4/kita/src/bbsview.h 2009-07-18 22:16:30 UTC (rev 2436) @@ -45,12 +45,12 @@ QList<Category> getCategoryList(const QString& html) const; void saveOpened(); - KComboBox* SearchCombo; + KComboBox* searchCombo; QTreeWidget* m_boardList; void contextMenuEvent(QContextMenuEvent* e); protected: - QVBoxLayout* BBSViewBaseLayout; + QVBoxLayout* bbsViewBaseLayout; QHBoxLayout* layout10; QSpacerItem* spacer2;