Merge pull request #2125 from ctrlaltca/fix_1762
Fix clipboard behavior in deck editor and game
This commit is contained in:
commit
da2eb97c7b
3 changed files with 15 additions and 5 deletions
|
@ -13,19 +13,25 @@ CardInfoText::CardInfoText(QWidget *parent)
|
||||||
nameLabel1 = new QLabel;
|
nameLabel1 = new QLabel;
|
||||||
nameLabel2 = new QLabel;
|
nameLabel2 = new QLabel;
|
||||||
nameLabel2->setWordWrap(true);
|
nameLabel2->setWordWrap(true);
|
||||||
|
nameLabel2->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||||
manacostLabel1 = new QLabel;
|
manacostLabel1 = new QLabel;
|
||||||
manacostLabel2 = new QLabel;
|
manacostLabel2 = new QLabel;
|
||||||
manacostLabel2->setWordWrap(true);
|
manacostLabel2->setWordWrap(true);
|
||||||
|
manacostLabel2->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||||
colorLabel1 = new QLabel;
|
colorLabel1 = new QLabel;
|
||||||
colorLabel2 = new QLabel;
|
colorLabel2 = new QLabel;
|
||||||
colorLabel2->setWordWrap(true);
|
colorLabel2->setWordWrap(true);
|
||||||
|
colorLabel2->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||||
cardtypeLabel1 = new QLabel;
|
cardtypeLabel1 = new QLabel;
|
||||||
cardtypeLabel2 = new QLabel;
|
cardtypeLabel2 = new QLabel;
|
||||||
cardtypeLabel2->setWordWrap(true);
|
cardtypeLabel2->setWordWrap(true);
|
||||||
|
cardtypeLabel2->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||||
powtoughLabel1 = new QLabel;
|
powtoughLabel1 = new QLabel;
|
||||||
powtoughLabel2 = new QLabel;
|
powtoughLabel2 = new QLabel;
|
||||||
|
powtoughLabel2->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||||
loyaltyLabel1 = new QLabel;
|
loyaltyLabel1 = new QLabel;
|
||||||
loyaltyLabel2 = new QLabel;
|
loyaltyLabel2 = new QLabel;
|
||||||
|
loyaltyLabel1->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||||
|
|
||||||
textLabel = new QTextEdit();
|
textLabel = new QTextEdit();
|
||||||
textLabel->setReadOnly(true);
|
textLabel->setReadOnly(true);
|
||||||
|
|
|
@ -159,7 +159,7 @@ void ShortcutsSettings::fillDefaultShorcuts()
|
||||||
defaultShortCuts["TabDeckEditor/aEditTokens"] = parseSequenceString("");
|
defaultShortCuts["TabDeckEditor/aEditTokens"] = parseSequenceString("");
|
||||||
defaultShortCuts["TabDeckEditor/aIncrement"] = parseSequenceString("+");
|
defaultShortCuts["TabDeckEditor/aIncrement"] = parseSequenceString("+");
|
||||||
defaultShortCuts["TabDeckEditor/aLoadDeck"] = parseSequenceString("Ctrl+O");
|
defaultShortCuts["TabDeckEditor/aLoadDeck"] = parseSequenceString("Ctrl+O");
|
||||||
defaultShortCuts["TabDeckEditor/aLoadDeckFromClipboard"] = parseSequenceString("Ctrl+V");
|
defaultShortCuts["TabDeckEditor/aLoadDeckFromClipboard"] = parseSequenceString("Ctrl+Shift+V");
|
||||||
defaultShortCuts["TabDeckEditor/aNewDeck"] = parseSequenceString("Ctrl+N");
|
defaultShortCuts["TabDeckEditor/aNewDeck"] = parseSequenceString("Ctrl+N");
|
||||||
defaultShortCuts["TabDeckEditor/aOpenCustomFolder"] = parseSequenceString("");
|
defaultShortCuts["TabDeckEditor/aOpenCustomFolder"] = parseSequenceString("");
|
||||||
defaultShortCuts["TabDeckEditor/aPrintDeck"] = parseSequenceString("Ctrl+P");
|
defaultShortCuts["TabDeckEditor/aPrintDeck"] = parseSequenceString("Ctrl+P");
|
||||||
|
@ -167,7 +167,7 @@ void ShortcutsSettings::fillDefaultShorcuts()
|
||||||
defaultShortCuts["TabDeckEditor/aResetLayout"] = parseSequenceString("");
|
defaultShortCuts["TabDeckEditor/aResetLayout"] = parseSequenceString("");
|
||||||
defaultShortCuts["TabDeckEditor/aSaveDeck"] = parseSequenceString("Ctrl+S");
|
defaultShortCuts["TabDeckEditor/aSaveDeck"] = parseSequenceString("Ctrl+S");
|
||||||
defaultShortCuts["TabDeckEditor/aSaveDeckAs"] = parseSequenceString("");
|
defaultShortCuts["TabDeckEditor/aSaveDeckAs"] = parseSequenceString("");
|
||||||
defaultShortCuts["TabDeckEditor/aSaveDeckToClipboard"] = parseSequenceString("Ctrl+C");
|
defaultShortCuts["TabDeckEditor/aSaveDeckToClipboard"] = parseSequenceString("Ctrl+Shift+C");
|
||||||
|
|
||||||
defaultShortCuts["DeckViewContainer/loadLocalButton"] = parseSequenceString("Ctrl+O");
|
defaultShortCuts["DeckViewContainer/loadLocalButton"] = parseSequenceString("Ctrl+O");
|
||||||
defaultShortCuts["DeckViewContainer/loadRemoteButton"] = parseSequenceString("Ctrl+Alt+O");
|
defaultShortCuts["DeckViewContainer/loadRemoteButton"] = parseSequenceString("Ctrl+Alt+O");
|
||||||
|
|
|
@ -280,7 +280,7 @@ void MainWindow::actExit()
|
||||||
|
|
||||||
void MainWindow::actAbout()
|
void MainWindow::actAbout()
|
||||||
{
|
{
|
||||||
QMessageBox::about(this, tr("About Cockatrice"), QString(
|
QMessageBox mb(QMessageBox::NoIcon, tr("About Cockatrice"), QString(
|
||||||
"<font size=\"8\"><b>Cockatrice</b></font><br>"
|
"<font size=\"8\"><b>Cockatrice</b></font><br>"
|
||||||
+ tr("Version %1").arg(VERSION_STRING)
|
+ tr("Version %1").arg(VERSION_STRING)
|
||||||
+ "<br><br><b><a href='" + GITHUB_PAGES_URL + "'>" + tr("Cockatrice Webpage") + "</a></b><br>"
|
+ "<br><br><b><a href='" + GITHUB_PAGES_URL + "'>" + tr("Cockatrice Webpage") + "</a></b><br>"
|
||||||
|
@ -295,8 +295,12 @@ void MainWindow::actAbout()
|
||||||
+ "<b>" + tr("Support:") + "</b><br>"
|
+ "<b>" + tr("Support:") + "</b><br>"
|
||||||
+ "<a href='" + GITHUB_ISSUES_URL + "'>" + tr("Report an Issue") + "</a><br>"
|
+ "<a href='" + GITHUB_ISSUES_URL + "'>" + tr("Report an Issue") + "</a><br>"
|
||||||
+ "<a href='" + GITHUB_TROUBLESHOOTING_URL + "'>" + tr("Troubleshooting") + "</a><br>"
|
+ "<a href='" + GITHUB_TROUBLESHOOTING_URL + "'>" + tr("Troubleshooting") + "</a><br>"
|
||||||
+ "<a href='" + GITHUB_FAQ_URL + "'>" + tr("F.A.Q.") + "</a><br>"
|
+ "<a href='" + GITHUB_FAQ_URL + "'>" + tr("F.A.Q.") + "</a><br>"),
|
||||||
));
|
QMessageBox::Ok, this
|
||||||
|
);
|
||||||
|
mb.setIconPixmap(QPixmap("theme:cockatrice").scaled(64, 64));
|
||||||
|
mb.setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||||
|
mb.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::actUpdate()
|
void MainWindow::actUpdate()
|
||||||
|
|
Loading…
Reference in a new issue