~ubuntu-branches/ubuntu/trusty/quassel/trusty-proposed

« back to all changes in this revision

Viewing changes to src/qtui/settingspages/bufferviewsettingspage.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-02-18 23:18:25 UTC
  • mto: This revision was merged to the branch mainline in revision 98.
  • Revision ID: package-import@ubuntu.com-20140218231825-hfgaeo3nmszt2pth
Tags: upstream-0.10~beta1
ImportĀ upstreamĀ versionĀ 0.10~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2005-2013 by the Quassel Project                        *
 
2
 *   Copyright (C) 2005-2014 by the Quassel Project                        *
3
3
 *   devel@quassel-irc.org                                                 *
4
4
 *                                                                         *
5
5
 *   This program is free software; you can redistribute it and/or modify  *
39
39
    _bufferViewHint(0)
40
40
{
41
41
    ui.setupUi(this);
 
42
    //Hide the hide inactive networks feature on older cores (which won't save the setting)
 
43
    if (!(Client::coreFeatures() & Quassel::HideInactiveNetworks))
 
44
        ui.hideInactiveNetworks->hide();
 
45
 
42
46
    ui.renameBufferView->setIcon(SmallIcon("edit-rename"));
43
47
    ui.addBufferView->setIcon(SmallIcon("list-add"));
44
48
    ui.deleteBufferView->setIcon(SmallIcon("edit-delete"));
60
64
    connect(ui.addNewBuffersAutomatically, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
61
65
    connect(ui.sortAlphabetically, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
62
66
    connect(ui.hideInactiveBuffers, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
 
67
    connect(ui.hideInactiveNetworks, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
63
68
    connect(ui.networkSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(widgetHasChanged()));
64
69
    connect(ui.minimumActivitySelector, SIGNAL(currentIndexChanged(int)), this, SLOT(widgetHasChanged()));
65
70
 
435
440
    ui.addNewBuffersAutomatically->setChecked(config->addNewBuffersAutomatically());
436
441
    ui.sortAlphabetically->setChecked(config->sortAlphabetically());
437
442
    ui.hideInactiveBuffers->setChecked(config->hideInactiveBuffers());
 
443
    ui.hideInactiveNetworks->setChecked(config->hideInactiveNetworks());
438
444
 
439
445
    int networkIndex = 0;
440
446
    for (int i = 0; i < ui.networkSelector->count(); i++) {
476
482
    config->setAddNewBuffersAutomatically(ui.addNewBuffersAutomatically->isChecked());
477
483
    config->setSortAlphabetically(ui.sortAlphabetically->isChecked());
478
484
    config->setHideInactiveBuffers(ui.hideInactiveBuffers->isChecked());
 
485
    config->setHideInactiveNetworks(ui.hideInactiveNetworks->isChecked());
479
486
    config->setNetworkId(ui.networkSelector->itemData(ui.networkSelector->currentIndex()).value<NetworkId>());
480
487
 
481
488
    int minimumActivity = 0;