mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
add the konqueror stubs for the WebSideBar module. waits for glue to add
the actual sidebar entry, and then it will be done. svn path=/trunk/kdebase/konqueror/; revision=213225
This commit is contained in:
parent
27f9b46798
commit
5f289a3f87
|
@ -4186,6 +4186,21 @@ void KonqMainWindow::slotOpenURL( const KURL& url )
|
|||
{
|
||||
openURL( 0L, url );
|
||||
}
|
||||
|
||||
void KonqMainWindow::slotAddWebSideBar(const KURL& url, const QString& name)
|
||||
{
|
||||
if (url.url().isEmpty() && name.isEmpty())
|
||||
return;
|
||||
|
||||
kdDebug(1202) << "Requested to add URL " << url.url() << " [" << name << "] to the sidebar!" << endl;
|
||||
int rc = KMessageBox::questionYesNo(0L,
|
||||
i18n("Add new web extension \"%1\" to your sidebar?")
|
||||
.arg(name.isEmpty() ? name : url.prettyURL()),
|
||||
i18n("Web Sidebar"));
|
||||
|
||||
if (rc == KMessageBox::Yes) {
|
||||
}
|
||||
}
|
||||
|
||||
void KonqMainWindow::bookmarksIntoCompletion( const KBookmarkGroup& group )
|
||||
{
|
||||
|
|
|
@ -457,9 +457,10 @@ protected slots:
|
|||
|
||||
virtual bool event( QEvent* );
|
||||
|
||||
void slotMoveTabLeft();
|
||||
void slotMoveTabRight();
|
||||
void slotMoveTabLeft();
|
||||
void slotMoveTabRight();
|
||||
|
||||
void slotAddWebSideBar(const KURL& url, const QString& name);
|
||||
|
||||
protected:
|
||||
static QString detectNameFilter( QString & url );
|
||||
|
|
|
@ -390,6 +390,11 @@ void KonqView::connectPart( )
|
|||
connect( ext, SIGNAL( enableAction( const char *, bool ) ),
|
||||
this, SLOT( slotEnableAction( const char *, bool ) ) );
|
||||
|
||||
connect( ext,
|
||||
SIGNAL( addWebSideBar(const KURL&, const QString&) ),
|
||||
m_pMainWindow,
|
||||
SLOT( slotAddWebSideBar(const KURL&, const QString&) ) );
|
||||
|
||||
callExtensionBoolMethod( "setSaveViewPropertiesLocally(bool)", m_pMainWindow->saveViewPropertiesLocally() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue