Commit 66847a13 authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Remove broken code

parent dac6716c
......@@ -67,11 +67,9 @@ KActionRunner::KActionRunner(KActionCollection* ac, QWidget* parent) :
void KActionRunner::showEvent(QShowEvent* event)
{
KComboBox::showEvent(event);
grabKeyboard();
setFocus();
}
KActionRunner::~KActionRunner()
{
delete d_ptr;
......
......@@ -28,25 +28,10 @@ KActionRunnerModel::KActionRunnerModel(KActionCollection* ac) : m_actionCollecti
{
m_size = ac->actions().size();
connect(ac, &KActionCollection::inserted, [this](QAction *action){
qDebug() << "Action inserted: " << action->text();
qDebug() << "Current row count: " << rowCount();
beginInsertRows(QModelIndex(), rowCount(), rowCount());
qDebug() << "inserted in position: " << rowCount();
m_size += 1;
endInsertRows();
});
/*
connect(ac, &KActionCollection::removed, [this]{
if (m_size <= 0)
return;
beginRemoveRows(QModelIndex(), rowCount(), rowCount());
m_size -= 1;
endInsertRows();
});
*/
}
KActionRunnerModel::~KActionRunnerModel()
......
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