46c45934f2
PR: 52572 Submitted by: KATO Tsuguru <tkato@prontomail.com>
52 lines
1.5 KiB
C++
52 lines
1.5 KiB
C++
--- krss/krss.cpp.orig Thu Feb 21 02:00:22 2002
|
|
+++ krss/krss.cpp Wed May 21 10:41:25 2003
|
|
@@ -24,6 +24,7 @@
|
|
#include <qscrollbar.h>
|
|
#include <qsplitter.h>
|
|
#include <qlayout.h>
|
|
+#include <qregexp.h>
|
|
|
|
// include files for KDE
|
|
#include <kiconloader.h>
|
|
@@ -46,7 +47,7 @@
|
|
#include <kwinmodule.h>
|
|
#include <khtml_part.h>
|
|
#include <khtmlview.h>
|
|
-
|
|
+#include <kstatusbar.h>
|
|
|
|
// application specific includes
|
|
#include "krss.h"
|
|
@@ -62,6 +63,8 @@
|
|
|
|
#define ID_STATUS_MSG 1
|
|
|
|
+using namespace std;
|
|
+
|
|
KrssApp::KrssApp(QWidget* , const char* name)
|
|
: KMainWindow(0, name)
|
|
{
|
|
@@ -518,7 +521,7 @@
|
|
{
|
|
config->setGroup(QString("General"));
|
|
QString mExec = config->readEntry(QString("Open URLs With"), QString("konqueror %url"));
|
|
- mExec.replace(QString("%url"), url.url());
|
|
+ mExec.replace(QRegExp("%url"), url.url());
|
|
|
|
slotStatusMsg(i18n("Starting ") + mExec + QString("..."));
|
|
|
|
@@ -967,12 +970,12 @@
|
|
config->setGroup(QString("General"));
|
|
QStringList uh_list = config->readListEntry(QString("URL Handlers"));
|
|
QString default_handler = config->readEntry(QString("Open URLs With"), QString("konqueror %url"));
|
|
- default_handler.replace(QString("%url"), url);
|
|
+ default_handler.replace(QRegExp("%url"), url);
|
|
menu.insertItem(default_handler);
|
|
menu.insertSeparator();
|
|
for(QStringList::Iterator i = uh_list.begin(); i != uh_list.end(); i++) {
|
|
QString handler((*i).latin1());
|
|
- handler.replace(QString("%url"), url);
|
|
+ handler.replace(QRegExp("%url"), url);
|
|
menu.insertItem(handler);
|
|
}
|
|
int ret = menu.exec(p);
|