OSDN Git Service

fix: cannot compile with KDE 3.1
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Tue, 22 Jun 2004 12:12:15 +0000 (12:12 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Tue, 22 Jun 2004 12:12:15 +0000 (12:12 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1187 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/kita.cpp
kita/src/part/kitahtmlpart.cpp

index 76d08e6..727275f 100644 (file)
@@ -616,7 +616,7 @@ void KitaMainWindow::slotOpenURLRequest( const KURL& url, const KParts::URLArgs&
     kdDebug() << QString( "NewTab: %1, reload: %2" )
                         .arg( args.newTab() ? "yes" : "no" )
                         .arg( args.reload ? "yes" : "no" ) << endl;
-    QString mimetype = KIO::NetAccess::mimetype( url, this );
+    QString mimetype = KIO::NetAccess::mimetype( url );
     kdDebug() << QString( "queried MIME type: \"%1\"" ).arg( mimetype ) << endl;
     if ( mimetype.startsWith( "image/" ) ) {
         KService::Ptr service = KServiceTypeProfile::preferredService( mimetype, "KParts/ReadOnlyPart" );
index 8741246..1f78f77 100644 (file)
@@ -996,7 +996,7 @@ void KitaHTMLPart::showPopupMenu( const KURL& kurl )
        
        case ID_Abone_Word:
 
-           if ( QMessageBox::question( view(),"Kita",
+           if ( QMessageBox::information( view(),"Kita",
                                 i18n( "Do you want to add '%1' to abone list ?" ).arg( selectedText() ),
                                QMessageBox::Ok, QMessageBox::Cancel | QMessageBox::Default )
                 == QMessageBox::Ok ){
@@ -1351,7 +1351,7 @@ void KitaHTMLPart::showWritePopupMenu( const QString& refstr)
        break;
        
     case WRITEMENU_ABONENAME:
-       if ( QMessageBox::question( view(),"Kita",
+       if ( QMessageBox::information( view(),"Kita",
                                    i18n( "Do you want to add '%1' to abone list ?" ).arg( namestr ),
                                    QMessageBox::Ok, QMessageBox::Cancel | QMessageBox::Default )
             == QMessageBox::Ok ){
@@ -1416,7 +1416,7 @@ void KitaHTMLPart::showIDPopup( const QString& refstr )
 
        case IDMENU_ABONE:
            /* add ID to abone list */
-           if ( QMessageBox::question( view(),"Kita",
+           if ( QMessageBox::information( view(),"Kita",
                                 i18n( "Do you want to add '%1' to abone list ?" ).arg( strid ),
                                QMessageBox::Ok, QMessageBox::Cancel | QMessageBox::Default )
                 == QMessageBox::Ok ){