mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 02:12:12 -05:00
Fix several deprecation warnings (#8657)
* Use constructor instead of nullptr for WindowFlags * Use constructor instead of nullptr for Alignment * Disable deprecation warning for QProcess * Add string split method to RaTextStringTools * Add caf.cpp used to manage Qt function deprecations * Use position()
This commit is contained in:
1 parent
72fc47e003
commit
806a149809
75 files changed
+472
-206
No files matched your search
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "RiuTextContentFrame.h"
|
||||
|
||||
#include "RiaTextStringTools.h"
|
||||
|
||||
#include "RiaFontCache.h"
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
@@ -168,7 +170,7 @@ void RiuTextContentFrame::paintEvent( QPaintEvent* e )
|
||||
void RiuTextContentFrame::layoutInfo( LayoutInfo* layout ) const
|
||||
{
|
||||
QFontMetrics fontMetrics( this->font() );
|
||||
QStringList titleLines = m_text.split( "\n", QString::SkipEmptyParts );
|
||||
QStringList titleLines = RiaTextStringTools::splitSkipEmptyParts( m_text, "\n" );
|
||||
|
||||
layout->charHeight = fontMetrics.height();
|
||||
layout->charAscent = fontMetrics.ascent();
|
||||
|
||||
Reference in new issue
Block a user