OSDN Git Service

use alwaysUseTab option
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sat, 29 May 2004 10:56:29 +0000 (10:56 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sat, 29 May 2004 10:56:29 +0000 (10:56 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1113 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/kita.cpp
kita/src/kita.h
kita/src/kitathreadtabwidget.h

index bd34566..015e263 100644 (file)
@@ -136,7 +136,7 @@ KitaMainWindow::KitaMainWindow()
              SLOT( bookmark( const QString&, bool ) ) );
 
     connect( m_urlLine, SIGNAL( returnPressed() ),
-             SLOT( slotUrlLine() ) );
+             SLOT( slotURLLine() ) );
 
     QPopupMenu* popup = static_cast<QPopupMenu *>( factory() ->container( "window", this ) );
     connect( popup, SIGNAL( aboutToShow() ),
@@ -236,7 +236,7 @@ void KitaMainWindow::setupActions()
                        i18n( "URL Line" ),
                        0,
                        this,
-                       SLOT( slotUrlLine() )         /* dummy */,
+                       SLOT( slotURLLine() )         /* dummy */,
                        actionCollection(), "url_line_action" );
 
     KStdAction::keyBindings( this, SLOT( optionsConfigureKeys() ), actionCollection() );
@@ -274,11 +274,11 @@ void KitaMainWindow::setupActions()
     createGUI();
 }
 
-void KitaMainWindow::slotUrlLine()
+void KitaMainWindow::slotURLLine()
 {
     QString text = m_urlLine->text();
     QString datURL = Kita::threadToDat( text );
-    m_threadTab->showThread( datURL );
+    m_threadTab->showThread( datURL, KitaConfig::alwaysUseTab() );
 }
 
 void KitaMainWindow::writeConfig( KConfig* config )
index 59bfc90..9410b81 100644 (file)
@@ -111,7 +111,7 @@ private slots:
     void setFont( const QFont& font );
     void setThreadFont( const QFont& font );
     void slotWriteSucceeded();
-    void slotUrlLine();
+    void slotURLLine();
     void setUrl( const KURL& url );
     void bookmark( const QString& datURL, bool on );
     void slotThread( const Kita::Thread* thread );
index e61f102..8a6d411 100644 (file)
@@ -37,7 +37,7 @@ public:
     void closeCurrentTab();
 
 public slots:
-    void showThread( const QString& datURL, bool withNewTab = false );
+    void showThread( const QString& datURL, bool withNewTab );
     void deleteView( KitaThreadView* );
     void reloadThread();
     void focusSearchCombo();