connect( popup, SIGNAL( aboutToShow() ), SLOT( windowMenuAboutToShow() ) );
m_boardView->loadBoardList();
+ m_boardView->setFocus();
}
KitaMainWindow::~KitaMainWindow()
SLOT( slotContextMenuRequested( QListViewItem*, const QPoint&, int ) ) );
connect( subjectList, SIGNAL( mouseButtonClicked( int, QListViewItem*, const QPoint&, int ) ),
SLOT( loadThread( int, QListViewItem* ) ) );
+ connect( subjectList, SIGNAL( returnPressed( QListViewItem* ) ),
+ SLOT( loadThread( QListViewItem* ) ) );
}
KitaSubjectView::~KitaSubjectView()
void KitaSubjectView::loadThread( int, QListViewItem* item )
{
+ loadThread( item );
+}
+
+void KitaSubjectView::loadThread( QListViewItem* item )
+{
if( ! item ) return;
QString datName = item->text(Row_DatName);
HideButton->toggle();
}
emit loadBoardCompleted(m_board->url());
+
+ subjectList->setFocus();
}
void KitaSubjectView::slotSearchButton()
private slots:
void loadThread( int, QListViewItem* item );
+ void loadThread( QListViewItem* item );
void slotSearchButton();
void slotHideButton(bool on);
void slotContextMenuRequested( QListViewItem*, const QPoint&, int );