~ubuntu-branches/ubuntu/raring/mumble/raring

« back to all changes in this revision

Viewing changes to src/mumble/GlobalShortcut.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Thorvald Natvig
  • Date: 2009-12-10 20:29:29 UTC
  • mfrom: (9.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091210202929-3096zttdt0ie9kw6
Tags: 1.2.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
608
608
        }
609
609
}
610
610
 
 
611
void GlobalShortcutConfig::commit() {
 
612
        qtwShortcuts->closePersistentEditor(qtwShortcuts->currentItem(), qtwShortcuts->currentColumn());
 
613
}
 
614
 
611
615
void GlobalShortcutConfig::on_qpbAdd_clicked(bool) {
 
616
        commit();
612
617
        Shortcut sc;
613
618
        sc.iIndex = -1;
614
619
        sc.bSuppress = false;
617
622
}
618
623
 
619
624
void GlobalShortcutConfig::on_qpbRemove_clicked(bool) {
 
625
        commit();
620
626
        QTreeWidgetItem *qtwi = qtwShortcuts->currentItem();
621
627
        if (! qtwi)
622
628
                return;
631
637
 
632
638
void GlobalShortcutConfig::on_qtwShortcuts_itemChanged(QTreeWidgetItem *item, int) {
633
639
        int idx = qtwShortcuts->indexOfTopLevelItem(item);
 
640
 
634
641
        Shortcut &sc = qlShortcuts[idx];
635
642
        sc.iIndex = item->data(0, Qt::DisplayRole).toInt();
636
643
        sc.qvData = item->data(1, Qt::DisplayRole);