mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
forzado el ancho del combobox
This commit is contained in:
parent
32453d1b43
commit
daa778fd2b
@ -93,7 +93,8 @@ void LibraryWindow::doLayout()
|
|||||||
m.rotate(-90);
|
m.rotate(-90);
|
||||||
m.scale(-1,1);
|
m.scale(-1,1);
|
||||||
QImage image(":/images/setRead.png");
|
QImage image(":/images/setRead.png");
|
||||||
comicFlow->setMarkImage(image.transformed(m,Qt::SmoothTransformation));
|
QImage imageTransformed = image.transformed(m,Qt::SmoothTransformation);
|
||||||
|
comicFlow->setMarkImage(imageTransformed);
|
||||||
int heightDesktopResolution = QApplication::desktop()->screenGeometry().height();
|
int heightDesktopResolution = QApplication::desktop()->screenGeometry().height();
|
||||||
int height,width;
|
int height,width;
|
||||||
height = heightDesktopResolution*0.39;
|
height = heightDesktopResolution*0.39;
|
||||||
|
@ -34,7 +34,8 @@ QList<QString> addresses()
|
|||||||
tmpAddrPtr=&((struct sockaddr_in *)ifa->ifa_addr)->sin_addr;
|
tmpAddrPtr=&((struct sockaddr_in *)ifa->ifa_addr)->sin_addr;
|
||||||
char addressBuffer[INET_ADDRSTRLEN];
|
char addressBuffer[INET_ADDRSTRLEN];
|
||||||
inet_ntop(AF_INET, tmpAddrPtr, addressBuffer, INET_ADDRSTRLEN);
|
inet_ntop(AF_INET, tmpAddrPtr, addressBuffer, INET_ADDRSTRLEN);
|
||||||
localAddreses.push_back(addressBuffer,INET_ADDRSTRLEN);
|
QString add(addressBuffer);
|
||||||
|
localAddreses.push_back(QString(addressBuffer));
|
||||||
//printf("%s IP Address %s\n", ifa->ifa_name, addressBuffer);
|
//printf("%s IP Address %s\n", ifa->ifa_name, addressBuffer);
|
||||||
} else if (ifa->ifa_addr->sa_family==AF_INET6) { // check it is IP6
|
} else if (ifa->ifa_addr->sa_family==AF_INET6) { // check it is IP6
|
||||||
// is a valid IP6 Address
|
// is a valid IP6 Address
|
||||||
@ -45,7 +46,7 @@ QList<QString> addresses()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ifAddrStruct!=NULL) freeifaddrs(ifAddrStruct);
|
if (ifAddrStruct!=NULL) freeifaddrs(ifAddrStruct);
|
||||||
return 0;
|
return localAddreses;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@ -85,18 +86,17 @@ ServerConfigDialog::ServerConfigDialog(QWidget * parent)
|
|||||||
propaganda->setOpenExternalLinks(true);
|
propaganda->setOpenExternalLinks(true);
|
||||||
|
|
||||||
QLabel * ipLabel = new QLabel(tr("IP address"),this);
|
QLabel * ipLabel = new QLabel(tr("IP address"),this);
|
||||||
ipLabel->move(455,75);
|
ipLabel->move(452,75);
|
||||||
ipLabel->setStyleSheet("QLabel {color:#1F1F1F; font-size:13px; font-family: Arial; font-weight: bold;}");
|
ipLabel->setStyleSheet("QLabel {color:#1F1F1F; font-size:13px; font-family: Arial; font-weight: bold;}");
|
||||||
|
|
||||||
QLabel * portLabel = new QLabel(tr("Port"),this);
|
QLabel * portLabel = new QLabel(tr("Port"),this);
|
||||||
portLabel->move(455, 114);
|
portLabel->move(452, 114);
|
||||||
portLabel->setStyleSheet("QLabel {color:#1F1F1F; font-size:13px; font-family: Arial; font-weight: bold;}");
|
portLabel->setStyleSheet("QLabel {color:#1F1F1F; font-size:13px; font-family: Arial; font-weight: bold;}");
|
||||||
|
|
||||||
ip = new QComboBox(this);
|
ip = new QComboBox(this);
|
||||||
connect(ip,SIGNAL(activated(const QString &)),this,SLOT(regenerateQR(const QString &)));
|
connect(ip,SIGNAL(activated(const QString &)),this,SLOT(regenerateQR(const QString &)));
|
||||||
ip->move(531,71);
|
ip->move(520,71);
|
||||||
ip->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
//ip->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||||
ip->setMaximumWidth(100);
|
|
||||||
|
|
||||||
port = new QLineEdit("8080",this);
|
port = new QLineEdit("8080",this);
|
||||||
port->setReadOnly(true);
|
port->setReadOnly(true);
|
||||||
@ -234,6 +234,7 @@ void ServerConfigDialog::generateQR()
|
|||||||
}
|
}
|
||||||
//qrCode->setText(dir+":8080");
|
//qrCode->setText(dir+":8080");
|
||||||
|
|
||||||
|
ip->setFixedWidth(130);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
if [ $2 == "clean" ]; then
|
||||||
|
./cleanOSX.sh
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Compiling YACReader"
|
echo "Compiling YACReader"
|
||||||
cd ./YACReader
|
cd ./YACReader
|
||||||
|
@ -3,6 +3,7 @@ macdeployqt YACReader.app
|
|||||||
macdeployqt YACReaderLibrary.app
|
macdeployqt YACReaderLibrary.app
|
||||||
cp -R ./utils ./YACReader.app/Contents/MacOS/
|
cp -R ./utils ./YACReader.app/Contents/MacOS/
|
||||||
cp -R ./utils ./YACReaderLibrary.app/Contents/MacOS/
|
cp -R ./utils ./YACReaderLibrary.app/Contents/MacOS/
|
||||||
|
cp -R ./release/server ./YACReaderLibrary.app/Contents/MacOS/
|
||||||
cd ./YACReaderLibrary.app/Contents/MacOS/
|
cd ./YACReaderLibrary.app/Contents/MacOS/
|
||||||
ln -s ../../../YACReader.app/Contents/MacOS/YACReader
|
ln -s ../../../YACReader.app/Contents/MacOS/YACReader
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user