scrollbar bug fixed
This commit is contained in:
parent
58b3843e94
commit
0510b47a93
1 changed files with 4 additions and 0 deletions
|
@ -27,11 +27,13 @@
|
||||||
#include <QSpacerItem>
|
#include <QSpacerItem>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
|
#include <QScrollBar>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QPalette>
|
#include <QPalette>
|
||||||
#include <QRegExp>
|
#include <QRegExp>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
|
#include <QTimer>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
@ -345,10 +347,12 @@ void ProfileInterface::on_profileWidgetDeselected()
|
||||||
{
|
{
|
||||||
if (selectedWidgts == 1)
|
if (selectedWidgts == 1)
|
||||||
{
|
{
|
||||||
|
int scrollBarValue = ui->saProfile->verticalScrollBar()->value();
|
||||||
foreach(ProfileWidget *widget, widgets.keys())
|
foreach(ProfileWidget *widget, widgets.keys())
|
||||||
{
|
{
|
||||||
widget->setSelectionMode(false);
|
widget->setSelectionMode(false);
|
||||||
}
|
}
|
||||||
|
ui->saProfile->verticalScrollBar()->setValue(scrollBarValue);
|
||||||
}
|
}
|
||||||
selectedWidgts--;
|
selectedWidgts--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue