QT KTV 源码,QT designer

源代码在线查看: language.cpp

软件大小: 15896 K
上传用户: qqpp2q
关键词: designer QT KTV 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include "../headers/Language.h"
				
				Language::Language() : SongListTemplate() {
					InterfaceConfig config(GlobalData::ConfigPrefix + "Language.ini");
					this->AddButton(&config);
					this->SetupSignalConnection(config.GetNameList());
					this->_queryStr = "SELECT a.*,(SELECT COUNT(*) FROM OrderList WHERE a.songId=OrderList.songId) AS BeOrdered FROM song AS a ORDER BY a.songId DESC";
					this->DisplayData();
				}
				void Language::ActionToDo(){
					MyButton* p_mb = (MyButton*)this->sender();
					if(p_mb->Name() == "Language/jvimage2") this->_queryStr = trUtf8("SELECT a.*,(SELECT COUNT(*) FROM OrderList WHERE a.songId=OrderList.songId) AS BeOrdered FROM song AS a WHERE a.songLanguage='国语歌曲' ORDER BY a.songId DESC");
					if(p_mb->Name() == "Language/jvimage3") this->_queryStr = trUtf8("SELECT a.*,(SELECT COUNT(*) FROM OrderList WHERE a.songId=OrderList.songId) AS BeOrdered FROM song AS a WHERE a.songLanguage='闽南歌曲' ORDER BY a.songId DESC");
					if(p_mb->Name() == "Language/jvimage4") this->_queryStr = trUtf8("SELECT a.*,(SELECT COUNT(*) FROM OrderList WHERE a.songId=OrderList.songId) AS BeOrdered FROM song AS a WHERE a.songLanguage='粤语歌曲' ORDER BY a.songId DESC");
					if(p_mb->Name() == "Language/jvimage5") this->_queryStr = trUtf8("SELECT a.*,(SELECT COUNT(*) FROM OrderList WHERE a.songId=OrderList.songId) AS BeOrdered FROM song AS a WHERE a.songLanguage='韩语歌曲' ORDER BY a.songId DESC");
					if(p_mb->Name() == "Language/jvimage6") this->_queryStr = trUtf8("SELECT a.*,(SELECT COUNT(*) FROM OrderList WHERE a.songId=OrderList.songId) AS BeOrdered FROM song AS a WHERE a.songLanguage='日语歌曲' ORDER BY a.songId DESC");
					if(p_mb->Name() == "Language/jvimage7") this->_queryStr = trUtf8("SELECT a.*,(SELECT COUNT(*) FROM OrderList WHERE a.songId=OrderList.songId) AS BeOrdered FROM song AS a WHERE a.songLanguage='英文歌曲' ORDER BY a.songId DESC");
					if(p_mb->Name() == "Language/jvimage1") this->_queryStr = "SELECT a.*,(SELECT COUNT(*) FROM OrderList WHERE a.songId=OrderList.songId) AS BeOrdered FROM song AS a ORDER BY a.songId DESC";
					this->DisplayData();
				}
							

相关资源