mirror of
https://github.com/Cubitect/cubiomes-viewer.git
synced 2025-01-07 03:17:01 +08:00
Use system fontconfig in static build
This commit is contained in:
parent
3978c33058
commit
d686740b43
@ -68,7 +68,7 @@ A possible configuration for a static build may be:
|
||||
$ mkdir qt5; cd qt5
|
||||
$ wget https://download.qt.io/archive/qt/5.15/5.15.12/submodules/qtbase-everywhere-opensource-src-5.15.12.tar.xz
|
||||
$ tar xf qtbase-everywhere-opensource-src-5.15.12.tar.xz
|
||||
$ ./qtbase-everywhere-src-5.15.12/configure -release -static -opensource -confirm-license -opengl -nomake examples -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -qt-pcre -qt-harfbuzz
|
||||
$ ./qtbase-everywhere-src-5.15.12/configure -release -static -opensource -confirm-license -nomake examples -opengl -fontconfig -system-freetype -qt-zlib -qt-libjpeg -qt-libpng -qt-pcre -qt-harfbuzz -prefix .
|
||||
$ make -s -j 4
|
||||
```
|
||||
|
||||
|
@ -694,7 +694,7 @@ void MainWindow::setBiomeColorRc(QString rc)
|
||||
|
||||
void MainWindow::setProgressIndication(double value)
|
||||
{
|
||||
int v = (int) floor(10000 * value);
|
||||
int v = (int) floor(100 * value);
|
||||
if (v == progval)
|
||||
return;
|
||||
progval = v;
|
||||
@ -706,9 +706,9 @@ void MainWindow::setProgressIndication(double value)
|
||||
QPainter painter(&pixmap);
|
||||
QRect view = painter.viewport();
|
||||
|
||||
QString txt = QString::asprintf("%2d.%02d%%", progval/100, progval%100);
|
||||
QString txt = QString::asprintf("%2d", progval);
|
||||
QFont f = font();
|
||||
f.setPixelSize(32);
|
||||
f.setPixelSize(48);
|
||||
|
||||
int pad = 2;
|
||||
int y = view.bottom() - pad;
|
||||
|
Loading…
Reference in New Issue
Block a user