mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix Stylesheets after review
This commit is contained in:
parent
38e0b150ac
commit
4847f46840
@ -494,10 +494,9 @@ bool RiuQwtPlotWidget::eventFilter( QObject* watched, QEvent* event )
|
||||
int dragLength = ( mouseEvent->pos() - m_clickPosition ).manhattanLength();
|
||||
if ( dragLength >= QApplication::startDragDistance() )
|
||||
{
|
||||
QPoint dragPositionOffset = this->geometry().topLeft() - mouseEvent->pos();
|
||||
QPixmap pixmap = this->grab();
|
||||
QDrag* drag = new QDrag( this );
|
||||
QMimeData* mimeData = new QMimeData;
|
||||
QPixmap pixmap = this->grab();
|
||||
QDrag* drag = new QDrag( this );
|
||||
QMimeData* mimeData = new QMimeData;
|
||||
mimeData->setImageData( pixmap );
|
||||
drag->setMimeData( mimeData );
|
||||
drag->setPixmap( pixmap );
|
||||
@ -634,8 +633,8 @@ RiuWidgetStyleSheet RiuQwtPlotWidget::createPlotStyleSheet() const
|
||||
|
||||
styleSheet.state( RiuWidgetStyleSheet::HOVER ).set( "background", backgroundGradient );
|
||||
}
|
||||
styleSheet.state( RiuWidgetStyleSheet::DRAG_TARGET_BEFORE ).set( "border-left", "1px solid red" );
|
||||
styleSheet.state( RiuWidgetStyleSheet::DRAG_TARGET_AFTER ).set( "border-right", "1px solid red" );
|
||||
styleSheet.state( RiuWidgetStyleSheet::DRAG_TARGET_BEFORE ).set( "border-left", "1px solid lime" );
|
||||
styleSheet.state( RiuWidgetStyleSheet::DRAG_TARGET_AFTER ).set( "border-right", "1px solid lime" );
|
||||
return styleSheet;
|
||||
}
|
||||
|
||||
|
@ -193,9 +193,9 @@ QString RiuWidgetStyleSheet::fullText( const QString& className, const QString&
|
||||
QString RiuWidgetStyleSheet::buildStateString( StateTag state )
|
||||
{
|
||||
QString stateString;
|
||||
if ( state == HOVER )
|
||||
if ( state > PSEUDO_STATE_LIMIT )
|
||||
{
|
||||
stateString += ":hover";
|
||||
stateString += ":" + StateTagEnum::uiText( state );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -82,5 +82,5 @@ private:
|
||||
static QString buildStateString( StateTag stateTag );
|
||||
|
||||
private:
|
||||
std::map<int, State> m_states;
|
||||
std::map<StateTag, State> m_states;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user