Skip to content
Permalink
Browse files

[ui] Move icon-less network logger toolbar actions under settings menu

  • Loading branch information
nirvn committed Jun 27, 2020
1 parent fc57be6 commit 6f82f3357018b1e298321971d4833866d170eed7
@@ -13,17 +13,21 @@
* *
***************************************************************************/

#include "qgsnetworkloggerpanelwidget.h"
#include "qgsapplication.h"
#include "qgsguiutils.h"
#include "qgsjsonutils.h"
#include "qgsnetworkloggerpanelwidget.h"
#include "qgsnetworkloggernode.h"
#include "qgsnetworklogger.h"
#include "qgssettings.h"
#include "qgsnetworkloggernode.h"
#include "qgsjsonutils.h"

#include <QFileDialog>
#include <QFontDatabase>
#include <QMenu>
#include <QScrollBar>
#include <QFileDialog>
#include <QMessageBox>
#include <QScrollBar>
#include <QToolButton>

#include <nlohmann/json.hpp>

//
@@ -200,4 +204,17 @@ QgsNetworkLoggerPanelWidget::QgsNetworkLoggerPanelWidget( QgsNetworkLogger *logg

fout << json;
} );


QMenu *settingsMenu = new QMenu();
QToolButton *settingsButton = new QToolButton();
settingsButton->setAutoRaise( true );
settingsButton->setToolTip( tr( "Settings" ) );
settingsButton->setMenu( settingsMenu );
settingsButton->setPopupMode( QToolButton::InstantPopup );
settingsButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionOptions.svg" ) ) );
mToolbar->addWidget( settingsButton );

settingsMenu->addAction( mActionShowSuccessful );
settingsMenu->addAction( mActionShowTimeouts );
}
@@ -39,10 +39,8 @@
</property>
<addaction name="mActionRecord"/>
<addaction name="mActionClear"/>
<addaction name="mActionShowSuccessful"/>
<addaction name="mActionShowTimeouts"/>
<addaction name="separator"/>
<addaction name="mActionSaveLog"/>
<addaction name="separator"/>
</widget>
</item>
<item>

0 comments on commit 6f82f33

Please sign in to comment.
You can’t perform that action at this time.