mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 00:55:13 -04:00
made camera/audio only active when config panel is shown
This commit is contained in:
parent
c4fbd3a4f5
commit
d7ecd775eb
3 changed files with 132 additions and 133 deletions
|
@ -67,9 +67,8 @@ class VOIPConfigPanel : public ConfigPage
|
|||
|
||||
protected:
|
||||
QTimer *qtTick;
|
||||
/*void hideEvent(QHideEvent *event);
|
||||
void showEvent(QShowEvent *event);*/
|
||||
|
||||
void clearPipeline();
|
||||
public:
|
||||
/** Default Constructor */
|
||||
VOIPConfigPanel(QWidget * parent = 0, Qt::WindowFlags flags = 0);
|
||||
|
@ -77,14 +76,16 @@ class VOIPConfigPanel : public ConfigPage
|
|||
~VOIPConfigPanel();
|
||||
|
||||
/** Saves the changes on this page */
|
||||
virtual bool save(QString &errmsg);
|
||||
virtual bool save(QString &errmsg)override ;
|
||||
/** Loads the settings for this page */
|
||||
virtual void load();
|
||||
virtual void load()override ;
|
||||
|
||||
virtual QPixmap iconPixmap() const { return QPixmap(":/images/talking_on.svg") ; }
|
||||
virtual QString pageName() const { return tr("VOIP") ; }
|
||||
virtual QString helpText() const { return ""; }
|
||||
virtual QPixmap iconPixmap() const override { return QPixmap(":/images/talking_on.svg") ; }
|
||||
virtual QString pageName() const override { return tr("VOIP") ; }
|
||||
virtual QString helpText() const override { return ""; }
|
||||
|
||||
virtual void showEvent(QShowEvent *) override;
|
||||
virtual void hideEvent(QHideEvent *event) override;
|
||||
private slots:
|
||||
void updateAvailableBW(double r);
|
||||
void loadSettings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue