initShortcuts( accels );
}
+/*!
+ \brief Delete shortcut.
+ \param accel shortcut bindings to be deleted
+ \sa shortcuts()
+*/
+void QtxSearchTool::deleteShortcut( const QKeySequence& accel )
+{
+ ShortcutList::Iterator it;
+ for ( it = myShortcuts.begin(); it != myShortcuts.end(); ++it )
+ {
+ if ( !(*it).isNull() )
+ {
+ QShortcut* sc = (*it);
+ if ( sc->key() == accel )
+ delete sc;
+ }
+ }
+}
+
/*!
\brief Add custom widget.
\param w custom widget to be added
QList<QKeySequence> shortcuts() const;
void setShortcuts( const QKeySequence& );
void setShortcuts( const QList<QKeySequence>& );
+ void deleteShortcut( const QKeySequence& );
int addCustomWidget( QWidget*, int = -1 );
QWidget* customWidget( int ) const;