summaryrefslogtreecommitdiffstats
path: root/opensuse/tdebase/konq-combo-editor.diff
diff options
context:
space:
mode:
authorRobert Xu <robxu9@gmail.com>2011-08-24 17:26:04 -0400
committerRobert Xu <robxu9@gmail.com>2011-08-24 17:26:04 -0400
commit93c66bf8bb8ac0124ae1800cbaaeb814742bfac5 (patch)
tree2551422a7981b35684110fae090223b7a1b6d73f /opensuse/tdebase/konq-combo-editor.diff
parent425774d7d1d663e08bb06050924f2eeca9147bba (diff)
downloadtde-packaging-93c66bf8bb8ac0124ae1800cbaaeb814742bfac5.tar.gz
tde-packaging-93c66bf8bb8ac0124ae1800cbaaeb814742bfac5.zip
dbus-1-tqt -> libdbus-tqt-1-0 AND tdelibs import (unchanged)
Diffstat (limited to 'opensuse/tdebase/konq-combo-editor.diff')
-rw-r--r--opensuse/tdebase/konq-combo-editor.diff42
1 files changed, 42 insertions, 0 deletions
diff --git a/opensuse/tdebase/konq-combo-editor.diff b/opensuse/tdebase/konq-combo-editor.diff
new file mode 100644
index 000000000..8a205fb9f
--- /dev/null
+++ b/opensuse/tdebase/konq-combo-editor.diff
@@ -0,0 +1,42 @@
+Index: konqueror/konq_combo.h
+===================================================================
+--- konqueror/konq_combo.h.orig
++++ konqueror/konq_combo.h
+@@ -87,6 +87,7 @@ signals:
+
+ private slots:
+ void slotCleared();
++ void slotRemoved( const QString& item );
+ void slotSetIcon( int index );
+ void slotActivated( const QString& text );
+
+Index: konqueror/konq_combo.cc
+===================================================================
+--- konqueror/konq_combo.cc.orig
++++ konqueror/konq_combo.cc
+@@ -128,6 +128,9 @@ KonqCombo::KonqCombo( QWidget *parent, c
+ connect( this, SIGNAL(activated( const QString& )),
+ SLOT(slotActivated( const QString& )) );
+
++ setHistoryEditorEnabled( true );
++ connect( this, SIGNAL(removed( const QString&) ), SLOT(slotRemoved( const QString& )) );
++
+ if ( !kapp->dcopClient()->isAttached() )
+ kapp->dcopClient()->attach();
+ }
+@@ -506,6 +509,15 @@ void KonqCombo::slotCleared()
+ kapp->dcopClient()->send( "konqueror*", "KonquerorIface", "comboCleared(QCString)", data);
+ }
+
++void KonqCombo::slotRemoved( const QString& item )
++{
++ QByteArray data;
++ QDataStream s( data, IO_WriteOnly );
++ s << item << kapp->dcopClient()->defaultObject();
++ kapp->dcopClient()->send( "konqueror*", "KonquerorIface",
++ "removeFromCombo(QString,QCString)", data);
++}
++
+ void KonqCombo::removeURL( const QString& url )
+ {
+ setUpdatesEnabled( false );