mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
Eliminado el uso de las macros Q_WS_*, en qt5 ya no est?n disponibles y es mejor usar Q_OS_* (Q_OS_LINUX, Q_OS_MAC, Q_OS_WIN32)
This commit is contained in:
@ -73,7 +73,7 @@ YACReaderActivityIndicatorWidget::YACReaderActivityIndicatorWidget(QWidget * par
|
||||
animation2->setEndValue(1);
|
||||
//animation2->setEasingCurve(QEasingCurve::InQuint);
|
||||
|
||||
#ifndef Q_WS_MAC
|
||||
#ifndef Q_OS_MAC
|
||||
glow->setGraphicsEffect(effect);
|
||||
#endif
|
||||
|
||||
|
@ -177,7 +177,7 @@ void LibraryCreator::create(QDir dir)
|
||||
return;
|
||||
QFileInfo fileInfo = list.at(i);
|
||||
QString fileName = fileInfo.fileName();
|
||||
#ifdef Q_WS_MAC
|
||||
#ifdef Q_OS_MAC
|
||||
QStringList src = _source.split("/");
|
||||
QString filePath = fileInfo.absoluteFilePath();
|
||||
QStringList fp = filePath.split("/");
|
||||
@ -476,7 +476,7 @@ void ThumbnailCreator::create()
|
||||
delete _7z;
|
||||
attributes.clear();
|
||||
_currentName = QDir::fromNativeSeparators(_currentName).split('/').last(); //separator fixed.
|
||||
#ifdef Q_WS_WIN
|
||||
#ifdef Q_OS_WIN32
|
||||
attributes << "e" << "-so" << "-r" << _fileSource << QString(_currentName.toLocal8Bit().constData()); //TODO platform dependency?? OEM 437
|
||||
#else
|
||||
attributes << "e" << "-so" << "-r" << _fileSource << _currentName; //TODO platform dependency?? OEM 437
|
||||
|
@ -965,7 +965,7 @@ void LibraryWindow::openComic()
|
||||
{
|
||||
QString path = currentPath() + dmCV->getComicPath(comicView->currentIndex());
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
#ifdef Q_OS_MAC
|
||||
|
||||
QProcess::startDetached("open", QStringList() << "-n" << QDir::cleanPath(QCoreApplication::applicationDirPath()+"/../../../YACReader.app") << "--args" << path);//,QStringList() << path);
|
||||
//Comic is readed
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include "startup.h"
|
||||
#include "yacreader_global.h"
|
||||
|
||||
#ifndef Q_WS_WIN
|
||||
#ifndef Q_OS_WIN32
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <ifaddrs.h>
|
||||
@ -190,7 +190,7 @@ void ServerConfigDialog::generateQR()
|
||||
//}
|
||||
ip->clear();
|
||||
QString dir;
|
||||
#ifdef Q_WS_WIN
|
||||
#ifdef Q_OS_WIN32
|
||||
QList<QHostAddress> list = QHostInfo::fromName( QHostInfo::localHostName() ).addresses();
|
||||
|
||||
QList<QString> otherAddresses;
|
||||
@ -244,7 +244,7 @@ void ServerConfigDialog::generateQR()
|
||||
|
||||
}
|
||||
//qrCode->setText(dir+":8080");
|
||||
#ifdef Q_WS_MAC
|
||||
#ifdef Q_OS_MAC
|
||||
ip->setFixedWidth(130);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user