mudlet/src/dlgTriggerPatternEdit.cpp
Piotr 802ebd26af
Change line spacer trigger type to use spin box (#4531)
move icon out of line edit action to make all types have small icon on the left

Co-authored-by: Piotr Wilczynski <piotr.wilczynski@bisnode.com>
2020-12-28 10:01:28 +01:00

41 lines
2 KiB
C++

/***************************************************************************
* Copyright (C) 2008-2009 by Heiko Koehn - KoehnHeiko@googlemail.com *
* Copyright (C) 2014 by Ahmed Charles - acharles@outlook.com *
* Copyright (C) 2019 by Stephen Lyons - slysven@virginmedia.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "dlgTriggerPatternEdit.h"
#include "pre_guard.h"
#include <QAction>
#include "post_guard.h"
dlgTriggerPatternEdit::dlgTriggerPatternEdit(QWidget* pF)
: QWidget(pF)
, mRow()
{
// init generated dialog
setupUi(this);
connect(comboBox_patternType, qOverload<int>(&QComboBox::currentIndexChanged), this, &dlgTriggerPatternEdit::slot_triggerTypeComboBoxChanged);
}
void dlgTriggerPatternEdit::slot_triggerTypeComboBoxChanged(const int index)
{
label_colorIcon->setPixmap(comboBox_patternType->itemIcon(index).pixmap(15, 15));
}