Skip to content
Snippets Groups Projects

[+]Add signal

Merged konstantin.kukharenko requested to merge features-3042 into develop
3 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
2 #include "ListModel.h"
3 #include <QStringListModel>
4
5 CustomComboBoxPopup::CustomComboBoxPopup(const QString &a_Caption,ListModel *model, QWidget *parent)
6 : QWidget (parent)
7 {
8 setFixedSize(parent->width(),parent->height());
9 setObjectName("wgtComboBoxPopup");
10
11 if(model != nullptr)
12 {
13 m_model = model;
14 }
15 else
16 {
17 m_model = new ListModel(parent);
  • 7 {
    8 setFixedSize(parent->width(),parent->height());
    9 setObjectName("wgtComboBoxPopup");
    10
    11 if(model != nullptr)
    12 {
    13 m_model = model;
    14 }
    15 else
    16 {
    17 m_model = new ListModel(parent);
    18 }
    19
    20 m_lblCaption = new QLabel(this);
    21 m_lblCaption->setObjectName("lblCaption");
    22 m_lblCaption->setText(a_Caption);
  • 1 #include "ListModel.h"
    2
    3
    4 ListModel::ListModel(QObject *parent):QAbstractListModel(parent)
    5 {
    6 DataModel tmpModel;
    7 for(int i = 0;i<6;i++)
    8 {
    9 tmpModel.text = "kelvin-testnet.Cellframe";
  • added 1 commit

    • d50c4d3d - [*]edited according to comments

    Compare with previous version

  • added 4 commits

    Compare with previous version

  • mentioned in commit 6ed922ec

  • Please register or sign in to reply
    Loading