[Pkg-owncloud-commits] [owncloud-client] 307/484: GeneralSettings: Remove references to protocolwidget.

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit ff4a8c92020e1750efac8e8c50d1dd11a7b93d7e
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed Nov 11 14:49:11 2015 +0100

    GeneralSettings: Remove references to protocolwidget.
    
    The ProtocolWidget is now the Activitytab Widget
---
 src/gui/generalsettings.cpp | 18 ------------------
 src/gui/generalsettings.h   |  2 --
 src/gui/generalsettings.ui  |  8 --------
 3 files changed, 28 deletions(-)

diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp
index 9a745e2..288d4b1 100644
--- a/src/gui/generalsettings.cpp
+++ b/src/gui/generalsettings.cpp
@@ -22,7 +22,6 @@
 #include "owncloudsetupwizard.h"
 #include "accountmanager.h"
 #include "synclogdialog.h"
-#include "protocolwidget.h"
 
 #include "updater/updater.h"
 #include "updater/ocupdater.h"
@@ -71,8 +70,6 @@ GeneralSettings::GeneralSettings(QWidget *parent) :
     _ui->crashreporterCheckBox->setVisible(false);
 #endif
 
-    _protocolWidget = new ProtocolWidget;
-
     /* Set the left contents margin of the layout to zero to make the checkboxes
      * align properly vertically , fixes bug #3758
      */
@@ -88,7 +85,6 @@ GeneralSettings::GeneralSettings(QWidget *parent) :
 
     connect(_ui->ignoredFilesButton, SIGNAL(clicked()), SLOT(slotIgnoreFilesEditor()));
     connect(_ui->addAccountButton, SIGNAL(clicked()), SLOT(slotOpenAccountWizard()));
-    connect(_ui->openSyncLog, SIGNAL(clicked()), SLOT(slotOpenSyncLog()));
 
     connect(AccountManager::instance(), SIGNAL(accountAdded(AccountState*)),
             SLOT(slotAccountAddedOrRemoved()));
@@ -156,20 +152,6 @@ void GeneralSettings::slotToggleOptionalDesktopNotifications(bool enable)
     cfgFile.setOptionalDesktopNotifications(enable);
 }
 
-void GeneralSettings::slotOpenSyncLog()
-{
-    // the protocolwidget is connected to the ProgressDispatcher ot collect
-    // notifications also in case the logwindow is not visible. It is passed
-    // here to the LogDialog constructor which is not destroyed once created
-    // except in the destructor here.
-    if (_syncLogDialog.isNull()) {
-        _syncLogDialog = new SyncLogDialog(0, _protocolWidget);
-        _syncLogDialog->open();
-    } else {
-        ownCloudGui::raiseDialog(_syncLogDialog);
-    }
-}
-
 void GeneralSettings::slotIgnoreFilesEditor()
 {
     if (_ignoreEditor.isNull()) {
diff --git a/src/gui/generalsettings.h b/src/gui/generalsettings.h
index d4ac274..aa28d11 100644
--- a/src/gui/generalsettings.h
+++ b/src/gui/generalsettings.h
@@ -20,7 +20,6 @@
 namespace OCC {
 class IgnoreListEditor;
 class SyncLogDialog;
-class ProtocolWidget;
 
 namespace Ui {
 class GeneralSettings;
@@ -56,7 +55,6 @@ private:
     Ui::GeneralSettings *_ui;
     QPointer<IgnoreListEditor> _ignoreEditor;
     QPointer<SyncLogDialog> _syncLogDialog;
-    ProtocolWidget *_protocolWidget;
 };
 
 
diff --git a/src/gui/generalsettings.ui b/src/gui/generalsettings.ui
index 8175052..cf4ba97 100644
--- a/src/gui/generalsettings.ui
+++ b/src/gui/generalsettings.ui
@@ -161,13 +161,6 @@
       <item row="2" column="1">
        <layout class="QHBoxLayout" name="horizontalLayout_5">
         <item>
-         <widget class="QPushButton" name="openSyncLog">
-          <property name="text">
-           <string>&Open Synclog</string>
-          </property>
-         </widget>
-        </item>
-        <item>
          <spacer name="horizontalSpacer_5">
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
@@ -276,7 +269,6 @@
   <tabstop>newFolderLimitCheckBox</tabstop>
   <tabstop>newFolderLimitSpinBox</tabstop>
   <tabstop>crashreporterCheckBox</tabstop>
-  <tabstop>openSyncLog</tabstop>
   <tabstop>restartButton</tabstop>
  </tabstops>
  <resources/>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list