removed dependency of FriendDialog on RsAutoUpdatePage which is not needed anymore

This commit is contained in:
csoler 2019-09-22 18:13:18 +02:00
parent 9b78447109
commit cdeee0198e
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 2 additions and 19 deletions

View File

@ -59,8 +59,7 @@
static FriendsDialog *instance = NULL;
/** Constructor */
FriendsDialog::FriendsDialog(QWidget *parent)
: RsAutoUpdatePage(1500,parent)
FriendsDialog::FriendsDialog(QWidget *parent) : MainPage(parent)
{
/* Invoke the Qt Designer generated object setup routine */
ui.setupUi(this);
@ -192,11 +191,6 @@ void FriendsDialog::processSettings(bool bLoad)
Settings->endGroup();
}
void FriendsDialog::showEvent(QShowEvent *event)
{
RsAutoUpdatePage::showEvent(event);
}
void FriendsDialog::chatMessageReceived(const ChatMessage &msg)
{
if(msg.chat_id.isBroadcast())
@ -226,10 +220,6 @@ void FriendsDialog::chatStatusReceived(const ChatId &chat_id, const QString &sta
}
}
void FriendsDialog::updateDisplay()
{
}
void FriendsDialog::addFriend()
{
std::string groupId = ui.friendList->getSelectedGroupId();

View File

@ -21,8 +21,6 @@
#ifndef _FRIENDSDIALOG_H
#define _FRIENDSDIALOG_H
#include "retroshare-gui/RsAutoUpdatePage.h"
#include "ui_FriendsDialog.h"
#define IMAGE_NETWORK ":/icons/png/network.png"
@ -33,7 +31,7 @@ class NetworkView;
class IdDialog;
class CirclesDialog;
class FriendsDialog : public RsAutoUpdatePage
class FriendsDialog : public MainPage
{
Q_OBJECT
@ -59,8 +57,6 @@ public:
virtual UserNotify *getUserNotify(QObject *parent);
virtual void updateDisplay() ; // overloaded from RsAutoUpdatePage
static bool isGroupChatActive();
static void groupChatActivate();
@ -71,9 +67,6 @@ public:
IdDialog *idDialog;
protected:
void showEvent (QShowEvent *event);
private slots:
void chatMessageReceived(const ChatMessage& msg);
void chatStatusReceived(const ChatId& chat_id, const QString& status_string);