~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to muse/widgets/tb1.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-07-18 16:07:06 UTC
  • mfrom: (1.1.12) (10.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120718160706-qy1lydijykeiqqmg
Tags: 2.0-1
* New stable release.
* debian/rules: Exclude muse/widgets/arrangercolumns.{cpp,h}~ from being
  deleted by dh_clean.
* Drop 0002-gcc_hardening.patch, applied upstream.
* Drop 0003-ftbfs_gcc47.patch, applied upstream.
* Refresh 1001-buildsystem.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
//=========================================================
22
22
 
23
23
#include <stdio.h>
24
 
#include <values.h>
 
24
#include <limits.h>
25
25
 
26
26
#include <QHeaderView>
27
27
#include <QTableWidget>    
69
69
      solo = new QToolButton();    
70
70
      solo->setText(tr("Solo"));
71
71
      solo->setCheckable(true);
 
72
      solo->setFocusPolicy(Qt::NoFocus);
72
73
      addWidget(solo);
73
74
 
74
75
      //---------------------------------------------------
80
81
      label->setIndent(3);
81
82
      addWidget(label);
82
83
      pos   = new PosLabel(0, "pos");
83
 
      pos->setFixedHeight(22);
 
84
      ///pos->setFixedHeight(22);
84
85
      addWidget(pos);
85
86
      if (showPitch) {
86
87
            pitch = new PitchLabel(0);
87
88
            pitch->setEnabled(false);
88
 
            pitch->setFixedHeight(22);
 
89
            ///pitch->setFixedHeight(22);
89
90
            addWidget(pitch);
90
91
            }
91
92
 
94
95
      //---------------------------------------------------
95
96
 
96
97
      raster = new LabelCombo(tr("Snap"), 0);
 
98
      raster->setFocusPolicy(Qt::TabFocus);
97
99
 
98
100
      rlist = new QTableWidget(10, 3);    
99
101
      rlist->verticalHeader()->setDefaultSectionSize(22);                      
115
117
      addWidget(raster);
116
118
      
117
119
      // FIXME: Not working right.
118
 
      raster->setFixedHeight(38);
 
120
      ///raster->setFixedHeight(38);
119
121
      
120
122
      connect(raster, SIGNAL(activated(int)), SLOT(_rasterChanged(int)));
121
123
      connect(solo,   SIGNAL(toggled(bool)), SIGNAL(soloChanged(bool)));
130
132
//void Toolbar1::_rasterChanged(int r, int c)
131
133
      {
132
134
      emit rasterChanged(rasterTable[rlist->currentRow() + rlist->currentColumn() * 10]);
 
135
      //parentWidget()->setFocus();
133
136
      //emit rasterChanged(rasterTable[r + c * 10]);
134
137
      }
135
138
 
164
167
            //printf("NOT visible\n");
165
168
            return;
166
169
            }
167
 
      if (val == MAXINT)
 
170
      if (val == INT_MAX)
168
171
            pos->setEnabled(false);
169
172
      else {
170
173
            pos->setEnabled(true);