Commit 5908c7b8 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

minor cleanups

parent 7c75f15a
......@@ -308,7 +308,7 @@ void HotkeysTreeViewContextMenu::newGlobalShortcutActionAction( int actionType )
}
KHotKeys::SimpleActionData *data =
new KHotKeys::SimpleActionData( 0, i18n("New Action"), i18n("Comment"));
new KHotKeys::SimpleActionData( nullptr, i18n("New Action"), i18n("Comment"));
data->set_trigger( new KHotKeys::ShortcutTrigger( data, QKeySequence() ) );
data->enable();
......@@ -337,7 +337,7 @@ void HotkeysTreeViewContextMenu::newMouseGestureTriggerActionAction( int actionT
}
KHotKeys::SimpleActionData *data =
new KHotKeys::SimpleActionData( 0, i18n("New Action"), i18n("Comment"));
new KHotKeys::SimpleActionData( nullptr, i18n("New Action"), i18n("Comment"));
data->set_trigger( new KHotKeys::GestureTrigger(data) );
data->enable();
......@@ -366,7 +366,7 @@ void HotkeysTreeViewContextMenu::newWindowTriggerActionAction( int actionType )
}
KHotKeys::SimpleActionData *data =
new KHotKeys::SimpleActionData( 0, i18n("New Action"), i18n("Comment"));
new KHotKeys::SimpleActionData( nullptr, i18n("New Action"), i18n("Comment"));
data->set_trigger( new KHotKeys::WindowTrigger(data) );
data->enable();
......
......@@ -40,8 +40,8 @@ class HotkeysTreeViewContextMenu : public QMenu
public:
HotkeysTreeViewContextMenu( const QModelIndex &index, HotkeysTreeView *parent = 0 );
HotkeysTreeViewContextMenu( HotkeysTreeView *parent = 0 );
HotkeysTreeViewContextMenu( const QModelIndex &index, HotkeysTreeView *parent = nullptr );
HotkeysTreeViewContextMenu( HotkeysTreeView *parent = nullptr );
virtual ~HotkeysTreeViewContextMenu();
......
......@@ -50,7 +50,7 @@ class KHotkeysModel : public QAbstractItemModel
*
* @param
*/
KHotkeysModel( QObject *parent = 0 );
KHotkeysModel( QObject *parent = nullptr );
/**
* Destructor
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment