summaryrefslogtreecommitdiff
path: root/muse2/muse/widgets/lcombo.cpp
blob: 2200cca7d03b9f485b8658f3bdc277b28d351737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//=========================================================
//  MusE
//  Linux Music Editor
//    $Id: lcombo.cpp,v 1.1.1.1.2.3 2009/07/01 22:14:56 spamatica Exp $
//  (C) Copyright 2000 Werner Schweer (ws@seh.de)
//=========================================================

#include "lcombo.h"

#include <QLayout>
#include <QFrame>
#include <qlabel.h>
//Added by qt3to4:
#include <QHBoxLayout>

//---------------------------------------------------------
//   LabelCombo
//---------------------------------------------------------

LabelCombo::LabelCombo(const QString& txt, QWidget* parent,
   const char* name) : QWidget(parent, name)
      {
//      setFixedHeight(20);
      QHBoxLayout* layout = new QHBoxLayout(this);
      QLabel* label = new QLabel(txt, this);
      //box = new QComboBox(false, this);
      box = new QComboBox(this);
      box->setEditable(false);
      ///layout->addStretch();
      layout->addSpacing(5);
      layout->addWidget(label);
      layout->addSpacing(5);
      layout->addWidget(box);
      layout->addSpacing(5);
      ///layout->addStretch();
      connect(box, SIGNAL(activated(int)), SIGNAL(activated(int)));
      }