~ubuntu-branches/ubuntu/edgy/muse/edgy

« back to all changes in this revision

Viewing changes to muse/liste/listedit.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2006-01-03 20:18:47 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060103201847-r9poqt6y5gu9hnji
Tags: 0.7.1+0.7.2pre5-1
* New upstream version.
* Updated patches:
  + [20_allow_system_timer]
    Rediffed for 0.7.2pre5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//=========================================================
2
2
//  MusE
3
3
//  Linux Music Editor
4
 
//    $Id: listedit.cpp,v 1.11.2.4 2005/12/11 21:29:23 spamatica Exp $
 
4
//    $Id: listedit.cpp,v 1.11.2.5 2006/01/01 20:51:55 spamatica Exp $
5
5
//  (C) Copyright 1999 Werner Schweer (ws@seh.de)
6
6
//=========================================================
7
7
 
413
413
      liste = new QListView(mainw);
414
414
      QFontMetrics fm(liste->font());
415
415
      int n = fm.width('9');
416
 
      int b = 8;
 
416
      int b = 24;
417
417
      int c = fm.width(QString("Val B"));
418
418
      liste->setAllColumnsShowFocus(true);
419
419
      liste->setSorting(0);
427
427
      liste->addColumn(tr("Val B"), c + b);
428
428
      liste->addColumn(tr("Val C"), c + b);
429
429
      liste->addColumn(tr("Len"),   n * 4 + b);
430
 
      liste->addColumn(tr("Comment"));
 
430
      liste->addColumn(tr("Comment"), fm.width(QString("MainVolume")) + 70);
431
431
      liste->setResizeMode(QListView::LastColumn);
432
432
      connect(liste, SIGNAL(selectionChanged()), SLOT(selectionChanged()));
433
433
      connect(liste, SIGNAL(doubleClicked(QListViewItem*)), SLOT(doubleClicked(QListViewItem*)));