调整ico图片为jpg,使得更加直观
This commit is contained in:
parent
c5213e6804
commit
c7b6c87d61
@ -82,8 +82,8 @@ bool xsteam_curl::get_steam_header_ico(std::string logo_url,std::string _c_uid)
|
||||
{
|
||||
std::string base_str=QDir::currentPath().toStdString();
|
||||
QDir dir(QString::fromStdString(base_str + "/save/img"));
|
||||
std::string u_str = logo_url + _c_uid + "/logo.png";
|
||||
std::string s_str = base_str + "/save/img/" + _c_uid + ".png";
|
||||
std::string u_str = logo_url + _c_uid + "/header.jpg";
|
||||
std::string s_str = base_str + "/save/img/" + _c_uid + ".jpg";
|
||||
if(!dir.exists()){
|
||||
QDir().mkpath(QString::fromStdString(base_str + "/save/img"));
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ void xsteam_git_fetch::fecth_uid_to_steam(UidData &u_data)
|
||||
{
|
||||
free_git_fetch();
|
||||
}
|
||||
u_data.ico = u_data.uid + ".png";
|
||||
u_data.ico = u_data.uid + ".jpg";
|
||||
// lua to luapaker .st to steamtools dir
|
||||
emit signal_fetch_return_msg("生成游戏入库lua脚本...");
|
||||
if (xsteam_lua_to_com(u_data))
|
||||
|
@ -34,6 +34,7 @@ void xsteam_view::init_view(VIEW_MODE view_mode)
|
||||
setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); // 自动设置行高
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
verticalHeader()->hide();
|
||||
setModel(m_model);
|
||||
}
|
||||
|
@ -27,8 +27,7 @@ void xsteam_view_item::paint(QPainter *painter,
|
||||
}
|
||||
|
||||
QRect rect = option.rect;
|
||||
pic = pic.scaled(rect.width(), rect.height(),
|
||||
Qt::KeepAspectRatio);
|
||||
pic = pic.scaled(rect.width(), rect.height(),Qt::KeepAspectRatio);
|
||||
int width = pic.width();
|
||||
int height = pic.height();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user