OSDN Git Service

remove 'show title image'
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 4 Jul 2007 14:43:08 +0000 (14:43 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 4 Jul 2007 14:43:08 +0000 (14:43 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1990 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/board/boardtabwidget.cpp
kita/src/board/boardtabwidget.h

index 95a5a71..d6b7c83 100644 (file)
@@ -133,13 +133,6 @@ void KitaBoardTabWidget::setupActions()
                  SLOT( slotShowOldLogs() ),
                  actionCollection(),
                  "subjectview_showoldlogs" );
-
-    new KAction( i18n( "Show Title Image" ),
-                 0,
-                 this,
-                 SLOT( slotShowTitleImg() ),
-                 actionCollection(),
-                 "subjectview_showtitleimg" );
 }
 
 /* public slot */
@@ -165,21 +158,6 @@ void KitaBoardTabWidget::slotShowOldLogs( int idx )
     if ( view ) view->toggleShowOldLogs();
 }
 
-/* public slot */
-void KitaBoardTabWidget::slotShowTitleImg( int idx )
-{
-    KitaBoardView * view;
-    if ( idx == -1 ) view = isSubjectView( currentPage() );
-    else view = isSubjectView( page( idx ) );
-    if ( view ) {
-        KURL imgURL = Kita::BoardManager::titleImgURL( view->boardURL() );
-        if ( !imgURL.isEmpty() ) {
-            emit openURLRequestExt( imgURL, KParts::URLArgs(), QString::null, 1, view->boardURL() );
-        }
-    }
-}
-
-
 /*---------------------------------------------------------------------*/
 /*---------------------------------------------------------------------*/
 /*---------------------------------------------------------------------*/
@@ -233,7 +211,6 @@ void SubjectTabBar::showPopupMenu( int idx, const QPoint& global )
     popup->insertItem( i18n( "Show Old Logs" ) , MENU_SHOWOLDLOGS );
     popup->insertItem( i18n( "Open with Web Browser" ), MENU_OPENBROWSER );
     popup->insertItem( i18n( "Copy title and URL" ), MENU_COPYTITLE );
-    popup->insertItem( i18n( "Show Title Image" ) , MENU_SHOWTITLEIMG );
 
     popup->insertSeparator();
     collection->action( "tab_configkeys" ) ->plug( popup );
@@ -250,7 +227,6 @@ void SubjectTabBar::showPopupMenu( int idx, const QPoint& global )
     case MENU_CLOSERIGHT: tabwidget->slotCloseRightTab( idx ); break;
     case MENU_CLOSELEFT: tabwidget->slotCloseLeftTab( idx ); break;
     case MENU_SHOWOLDLOGS: tabwidget->slotShowOldLogs( idx ); break;
-    case MENU_SHOWTITLEIMG: tabwidget->slotShowTitleImg( idx ); break;
     case MENU_OPENBROWSER:
         KRun::runURL( subjectView->boardURL(), "text/html" );
         break;
index 0839e3f..b794533 100644 (file)
@@ -48,7 +48,6 @@ public slots:
     void slotReloadButton();
     void slotFocusSearchCombo();
     void slotShowOldLogs( int idx = -1 );
-    void slotShowTitleImg( int idx = -1 );
 };
 
 /*--------------------------------------------------*/